MarkovChainNode

interface MarkovChainNode<T : Any> : Identifiable

Represents a markov chain node.

Types

Companion
Link copied to clipboard
common
object Companion

Functions

addNext
Link copied to clipboard
common
abstract fun addNext(probability: Double, nextNode: MarkovChainNode<T>): MarkovChainNode<T>
Adds a new MarkovChainNode and returns this.
data
Link copied to clipboard
common
abstract fun data(): Maybe<T>
Returns the satellite data stored in this node.
equals
Link copied to clipboard
common
open operator fun equals(other: Any?): Boolean
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 markov chain.
setData
Link copied to clipboard
common
abstract fun setData(data: T): MarkovChainNode<T>
Adds a new MarkovChainNode with the given data and returns this.
toString
Link copied to clipboard
common
open fun toString(): String

Properties

id
Link copied to clipboard
common
abstract val id: UUID

Inheritors

DefaultMarkovChainNode
Link copied to clipboard

Sources

(source)
Link copied to clipboard