2026-08-16 22:04:11 +03:00

8 lines
619 B
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# Empirical transitions
`TransitionMatrix::from_states(states, state_count)` counts adjacent observed state pairs in a `state_count × state_count` matrix. Every supplied state index must be below `state_count`, and `state_count` must be positive.
Rows with one or more outgoing transitions are normalized to conditional frequencies. Rows with no outgoing transition contain only zeroes, so they are deliberately not probability distributions. `probability(from, to)` returns `None` for out-of-range indices.
This matrix is descriptive. It does not estimate uncertainty, apply pseudocounts, or guarantee ergodicity.