Properties
- class pydtmc.MarkovChain[source]
- absorbing_states: List[List[str]][source]
A property representing the absorbing states of the Markov chain.
- accessibility_matrix: ndarray[source]
A property representing the accessibility matrix of the Markov chain.
- communicating_classes: List[List[str]][source]
A property representing the communicating classes of the Markov chain.
- communication_matrix: ndarray[source]
A property representing the communication matrix of the Markov chain.
- cyclic_classes: List[List[str]][source]
A property representing the cyclic classes of the Markov chain.
- cyclic_states: List[List[str]][source]
A property representing the cyclic states of the Markov chain.
- density: float[source]
A property representing the density of the transition matrix of the Markov chain.
- determinant: float[source]
A property representing the determinant of the transition matrix of the Markov chain.
- entropy_rate: float | None[source]
- A property representing the entropy rate of the Markov chain.If the Markov chain has multiple stationary distributions, then
None
is returned.
- entropy_rate_normalized: float | None[source]
- A property representing the entropy rate, normalized between 0 and 1, of the Markov chain.If the Markov chain has multiple stationary distributions, then
None
is returned.
- fundamental_matrix: ndarray | None[source]
- A property representing the fundamental matrix of the Markov chain.If the Markov chain is not absorbing or has no transient states, then
None
is returned.
- implied_timescales: ndarray | None[source]
- A property representing the implied timescales of the Markov chain.If the Markov chain is not ergodic, then
None
is returned.
- is_doubly_stochastic: bool[source]
A property indicating whether the Markov chain is doubly stochastic.
- is_stochastically_monotone: bool[source]
A property indicating whether the Markov chain is stochastically monotone.
- kemeny_constant: float | None[source]
- A property representing the Kemeny’s constant of the fundamental matrix of the Markov chain.If the Markov chain is not absorbing or has no transient states, then
None
is returned.
- lumping_partitions: List[List[List[int]] | List[List[str]]][source]
A property representing all the partitions of the Markov chain that satisfy the ordinary lumpability criterion.
- mixing_rate: float | None[source]
- A property representing the mixing rate of the Markov chain.If the Markov chain is not ergodic or the SLEM (second largest eigenvalue modulus) cannot be computed, then
None
is returned.
- n: int
A property representing the size of the Markov chain state space.
- p: ndarray
A property representing the transition matrix of the Markov chain.
- periods: List[int][source]
A property representing the period of each communicating class defined by the Markov chain.
- pi: List[ndarray][source]
- A property representing the stationary distributions of the Markov chain.Aliases: stationary_distributions, steady_states
- recurrent_classes: List[List[str]][source]
A property representing the recurrent classes defined by the Markov chain.
- recurrent_states: List[List[str]][source]
A property representing the recurrent states of the Markov chain.
- relaxation_rate: float | None[source]
- A property representing the relaxation rate of the Markov chain.If the Markov chain is not ergodic or the SLEM (second largest eigenvalue modulus) cannot be computed, then
None
is returned.
- size: int
A property representing the size of the Markov chain.
- spectral_gap: float | None[source]
- A property representing the spectral gap of the Markov chain.If the Markov chain is not ergodic or the SLEM (second largest eigenvalue modulus) cannot be computed, then
None
is returned.
- topological_entropy: float[source]
A property representing the topological entropy of the Markov chain.