DefaultMarkovChain

class DefaultMarkovChain<T : Any>(firstNode: MarkovChainNode<T>) : MarkovChain<T>

Functions

current
Link copied to clipboard
common
open override fun current(): MarkovChainNode<T>
Returns the current node in this MarkovChain.
equals
Link copied to clipboard
common
open operator fun equals(other: Any?): Boolean
first
Link copied to clipboard
common
open override fun first(): MarkovChainNode<T>
Returns the first (initial) node in this MarkovChain.
hashCode
Link copied to clipboard
common
open fun hashCode(): Int
next
Link copied to clipboard
common
open override fun next(): MarkovChainNode<T>
Calculates and returns the next state of this MarkovChain.
reset
Link copied to clipboard
common
open override fun reset(): MarkovChainNode<T>
Resets this MarkovChain to its initial state (the value returned by first and returns it.
toString
Link copied to clipboard
common
open fun toString(): String

Sources

(source)
Link copied to clipboard