kmath-coroutines
/
space.kscience.kmath.chains
/
StatefulChain
/
StatefulChain
common
Stateful
Chain
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.
forkState
the function to copy current state without modifying it.
Sources
common source
Link copied to clipboard