dynamo.tl.diffusion

dynamo.tl.diffusion(M, P0=None, steps=None, backward=False)[source]

Find the state distribution of a Markov process.

Parameters:
  • M (ndarray) – The transition matrix with dimension of n x n, where n is the cell number.

  • P0 (Optional[ndarray]) – The initial cell state with dimension of n. Defaults to None.

  • steps (Optional[int]) – The random walk steps on the Markov transition matrix. Defaults to None.

  • backward (bool) – Whether the backward transition will be considered. Defaults to False.

Return type:

ndarray

Returns:

The state distribution of the Markov process.