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
(dimension n x n, where n is the cell number)) – The transition matrix.P0 (
ndarray
(default None; dimension is n, )) – The initial cell state.steps (int (default None)) – The random walk steps on the Markov transitioin matrix.
backward (bool (default False)) – Whether the backward transition will be considered.
- Returns:
- Mu:
ndarray
The state distribution of the Markov process.
- Mu: