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:
- Returns:
The state distribution of the Markov process.