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] (default:None)) – The initial cell state with dimension of n. Defaults to None.steps (
Optional[int] (default:None)) – The random walk steps on the Markov transition matrix. Defaults to None.backward (
bool(default:False)) – Whether the backward transition will be considered. Defaults to False.
- Return type:
- Returns:
The state distribution of the Markov process.