Package | Description |
---|---|
org.apache.commons.rng.sampling |
This package provides sampling utilities.
|
org.apache.commons.rng.sampling.distribution |
This package contains classes for sampling from statistical distributions.
|
Modifier and Type | Method and Description |
---|---|
static CompositeSamplers.Builder<SharedStateDiscreteSampler> |
CompositeSamplers.newSharedStateDiscreteSamplerBuilder()
Create a new builder for a composite
SharedStateDiscreteSampler . |
Modifier and Type | Class and Description |
---|---|
class |
AliasMethodDiscreteSampler
Distribution sampler that uses the Alias method.
|
class |
DiscreteUniformSampler
Discrete uniform distribution sampler.
|
class |
FastLoadedDiceRollerDiscreteSampler
Distribution sampler that uses the Fast Loaded Dice Roller (FLDR).
|
class |
GuideTableDiscreteSampler
Compute a sample from
n values each with an associated probability. |
class |
InverseTransformDiscreteSampler
Distribution sampler that uses the
inversion method.
|
class |
KempSmallMeanPoissonSampler
Sampler for the Poisson
distribution.
|
class |
LargeMeanPoissonSampler
Sampler for the Poisson distribution.
|
class |
PoissonSampler
Sampler for the Poisson distribution.
|
class |
RejectionInversionZipfSampler
Implementation of the Zipf distribution.
|
class |
SmallMeanPoissonSampler
Sampler for the Poisson distribution.
|
Modifier and Type | Method and Description |
---|---|
SharedStateDiscreteSampler |
PoissonSamplerCache.createSharedStateSampler(UniformRandomProvider rng,
double mean)
Creates a new Poisson sampler.
|
static SharedStateDiscreteSampler |
InverseTransformDiscreteSampler.of(UniformRandomProvider rng,
DiscreteInverseCumulativeProbabilityFunction function)
Create a new inverse-transform discrete sampler.
|
static SharedStateDiscreteSampler |
PoissonSampler.of(UniformRandomProvider rng,
double mean)
Creates a new Poisson distribution sampler.
|
static SharedStateDiscreteSampler |
KempSmallMeanPoissonSampler.of(UniformRandomProvider rng,
double mean)
Creates a new sampler for the Poisson distribution.
|
static SharedStateDiscreteSampler |
GeometricSampler.of(UniformRandomProvider rng,
double probabilityOfSuccess)
Creates a new geometric distribution sampler.
|
static SharedStateDiscreteSampler |
SmallMeanPoissonSampler.of(UniformRandomProvider rng,
double mean)
Creates a new sampler for the Poisson distribution.
|
static SharedStateDiscreteSampler |
LargeMeanPoissonSampler.of(UniformRandomProvider rng,
double mean)
Creates a new Poisson distribution sampler.
|
static SharedStateDiscreteSampler |
MarsagliaTsangWangDiscreteSampler.Poisson.of(UniformRandomProvider rng,
double mean)
Creates a sampler for the Poisson distribution.
|
static SharedStateDiscreteSampler |
AliasMethodDiscreteSampler.of(UniformRandomProvider rng,
double[] probabilities)
Creates a sampler.
|
static SharedStateDiscreteSampler |
MarsagliaTsangWangDiscreteSampler.Enumerated.of(UniformRandomProvider rng,
double[] probabilities)
Creates a sampler for an enumerated distribution of
n values each with an
associated probability. |
static SharedStateDiscreteSampler |
GuideTableDiscreteSampler.of(UniformRandomProvider rng,
double[] probabilities)
Create a new sampler for an enumerated distribution using the given
probabilities . |
static SharedStateDiscreteSampler |
GuideTableDiscreteSampler.of(UniformRandomProvider rng,
double[] probabilities,
double alpha)
Create a new sampler for an enumerated distribution using the given
probabilities . |
static SharedStateDiscreteSampler |
AliasMethodDiscreteSampler.of(UniformRandomProvider rng,
double[] probabilities,
int alpha)
Creates a sampler.
|
static SharedStateDiscreteSampler |
MarsagliaTsangWangDiscreteSampler.Binomial.of(UniformRandomProvider rng,
int trials,
double probabilityOfSuccess)
Creates a sampler for the Binomial distribution.
|
static SharedStateDiscreteSampler |
RejectionInversionZipfSampler.of(UniformRandomProvider rng,
int numberOfElements,
double exponent)
Creates a new Zipf distribution sampler.
|
static SharedStateDiscreteSampler |
DiscreteUniformSampler.of(UniformRandomProvider rng,
int lower,
int upper)
Creates a new discrete uniform distribution sampler.
|
SharedStateDiscreteSampler |
DiscreteUniformSampler.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.
|
SharedStateDiscreteSampler |
PoissonSampler.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.
|
SharedStateDiscreteSampler |
KempSmallMeanPoissonSampler.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.
|
SharedStateDiscreteSampler |
SmallMeanPoissonSampler.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.
|
SharedStateDiscreteSampler |
LargeMeanPoissonSampler.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.
|
SharedStateDiscreteSampler |
AliasMethodDiscreteSampler.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.
|
SharedStateDiscreteSampler |
GuideTableDiscreteSampler.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.
|
SharedStateDiscreteSampler |
InverseTransformDiscreteSampler.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.
|
SharedStateDiscreteSampler |
RejectionInversionZipfSampler.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.