Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RunMarkovChain ¶
func RunMarkovChain(start State, states Transition, numSteps int) map[State]int
RunMarkovChain runs the Markov chain from the start state for numSteps. The result is the number of times each state occurred.
Types ¶
type Transition ¶
Transition represents the probabilities of transitions.
Click to show internal directories.
Click to hide internal directories.