Package | Description |
---|---|
org.apache.commons.rng.sampling.distribution |
This package contains classes for sampling from statistical distributions.
|
Modifier and Type | Method and Description |
---|---|
static DirichletSampler |
DirichletSampler.of(UniformRandomProvider rng,
double... alpha)
Creates a new Dirichlet distribution sampler.
|
static DirichletSampler |
DirichletSampler.symmetric(UniformRandomProvider rng,
int k,
double alpha)
Creates a new symmetric Dirichlet distribution sampler using the same concentration
parameter for each category.
|
abstract DirichletSampler |
DirichletSampler.withUniformRandomProvider(UniformRandomProvider rng)
Create a new instance of the sampler with the same underlying state using the given
uniform random provider as the source of randomness.
|
Copyright © 2016–2022 The Apache Software Foundation. All rights reserved.