function birth_death_chain¶
- deeptime.data.birth_death_chain(q, p, sparse=False)¶
Generates a birth and death chain simulator from annihilation and creation probabilities q and p.
A general birth and death chain on a d-dimensional state space has the transition matrix
The annihilation probability of state must not be zero, same for the creation probability of the last state . The sum of the probabilities must be bounded component-wise, i.e., .
(Source code, png, hires.png, pdf)
- Parameters:
q (array_like) – Annihilation probabilities for transition from i to i-1.
p (array_like) – Creation probabilities for transition from i to i+1.
sparse (bool, optional, default=False) – Whether to use sparse matrices.
- Returns:
chain – The chain.
- Return type: