kmath
common
kmath-coroutines
/
space.kscience.kmath.chains
/
StatefulChain
/
StatefulChain
Stateful
Chain
common
fun
<
S
,
out
R
>
StatefulChain
(
state
:
S
,
seed
:
S
.
(
)
->
R
,
forkState
:
(
S
)
->
S
,
gen
:
suspend
S
.
(
R
)
->
R
)
Content copied to clipboard
Parameters
S
the state of the chain.
fork
State
the function to copy current state without modifying it.
Sources
common source
Link copied to clipboard