kmath
0.3.1-dev-RC
common
kmath-stat
/
space.kscience.kmath.samplers
/
AliasMethodDiscreteSampler
/
AliasMethodDiscreteSampler
Alias
Method
Discrete
Sampler
fun
AliasMethodDiscreteSampler
(
probabilities
:
DoubleArray
,
alpha
:
Int
=
DEFAULT_ALPHA
)
:
Sampler
<
Int
>
(
source
)