kmath-coroutines
/
space.kscience.kmath.chains
/
MarkovChain
common
Markov
Chain
class
MarkovChain
<out
R
:
Any
>(seed: suspend () ->
R
, gen: suspend (
R
) ->
R
) :
Chain
<
R
>
Content copied to clipboard
A stateless Markov chain
Constructors
Functions
Properties
Constructors
MarkovChain
Link copied to clipboard
common
fun <out
R
:
Any
>
MarkovChain
(seed: suspend () ->
R
, gen: suspend (
R
) ->
R
)
Content copied to clipboard
Functions
collect
Link copied to clipboard
common
open suspend override fun
collect
(collector:
FlowCollector
<
R
>)
Content copied to clipboard
equals
Link copied to clipboard
common
open operator fun
equals
(other:
Any
?):
Boolean
Content copied to clipboard
fork
Link copied to clipboard
common
open override fun
fork
():
Chain
<
R
>
Content copied to clipboard
Create a copy of current chain state.
hashCode
Link copied to clipboard
common
open fun
hashCode
():
Int
Content copied to clipboard
next
Link copied to clipboard
common
open suspend override fun
next
():
R
Content copied to clipboard
Generate next value, changing state if needed
toString
Link copied to clipboard
common
open fun
toString
():
String
Content copied to clipboard
value
Link copied to clipboard
common
fun
value
():
R
?
Content copied to clipboard
Properties
gen
Link copied to clipboard
common
val
gen
: suspend (
R
) ->
R
Content copied to clipboard
value
Link copied to clipboard
common
var
value
:
R
? = null
Content copied to clipboard