kmath
0.3.1-dev-RC
common
kmath-coroutines
/
space.kscience.kmath.chains
/
StatefulChain
/
StatefulChain
Stateful
Chain
constructor
(
state
:
S
,
seed
:
S
.
(
)
->
R
,
forkState
:
(
S
)
->
S
,
gen
:
suspend
S
.
(
R
)
->
R
)
(
source
)
Parameters
S
the state of the chain.
fork
State
the function to copy current state without modifying it.