Table of Contents
MarkovChain
Defines a Markov chain with the given transition matrix.
p (Union[ndarray, spmatrix]) – the transition matrix.
Union
ndarray
spmatrix
states (Optional[List[str]]) – the name of each state (if omitted, an increasing sequence of integers starting at 1).
Optional
List
str
ValidationError – if any input argument is not compliant.
ValidationError