MarkovChain

interface MarkovChain<T : Any>

Represents a markov chain.

Types

Companion
Link copied to clipboard
common
object Companion

Functions

current
Link copied to clipboard
common
abstract 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
abstract 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
abstract fun next(): MarkovChainNode<T>
Calculates and returns the next state of this MarkovChain.
reset
Link copied to clipboard
common
abstract 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

Inheritors

DefaultMarkovChain
Link copied to clipboard

Sources

(source)
Link copied to clipboard