Package | Description |
---|---|
org.apache.commons.rng.sampling.distribution |
Distribution samplers
|
Modifier and Type | Class | Description |
---|---|---|
class |
AliasMethodDiscreteSampler |
Distribution sampler that uses the Alias method.
|
class |
DiscreteUniformSampler |
Discrete uniform distribution sampler.
|
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 | Description |
---|---|---|
static SharedStateDiscreteSampler |
AliasMethodDiscreteSampler.of(org.apache.commons.rng.UniformRandomProvider rng,
double[] probabilities) |
Creates a sampler.
|
static SharedStateDiscreteSampler |
AliasMethodDiscreteSampler.of(org.apache.commons.rng.UniformRandomProvider rng,
double[] probabilities,
int alpha) |
Creates a sampler.
|
static SharedStateDiscreteSampler |
DiscreteUniformSampler.of(org.apache.commons.rng.UniformRandomProvider rng,
int lower,
int upper) |
Creates a new discrete uniform distribution sampler.
|
static SharedStateDiscreteSampler |
GeometricSampler.of(org.apache.commons.rng.UniformRandomProvider rng,
double probabilityOfSuccess) |
Creates a new geometric distribution sampler.
|
static SharedStateDiscreteSampler |
GuideTableDiscreteSampler.of(org.apache.commons.rng.UniformRandomProvider rng,
double[] probabilities) |
Create a new sampler for an enumerated distribution using the given
probabilities . |
static SharedStateDiscreteSampler |
GuideTableDiscreteSampler.of(org.apache.commons.rng.UniformRandomProvider rng,
double[] probabilities,
double alpha) |
Create a new sampler for an enumerated distribution using the given
probabilities . |
static SharedStateDiscreteSampler |
InverseTransformDiscreteSampler.of(org.apache.commons.rng.UniformRandomProvider rng,
DiscreteInverseCumulativeProbabilityFunction function) |
Create a new inverse-transform discrete sampler.
|
static SharedStateDiscreteSampler |
KempSmallMeanPoissonSampler.of(org.apache.commons.rng.UniformRandomProvider rng,
double mean) |
Creates a new sampler for the Poisson distribution.
|
static SharedStateDiscreteSampler |
LargeMeanPoissonSampler.of(org.apache.commons.rng.UniformRandomProvider rng,
double mean) |
Creates a new Poisson distribution sampler.
|
static SharedStateDiscreteSampler |
MarsagliaTsangWangDiscreteSampler.Binomial.of(org.apache.commons.rng.UniformRandomProvider rng,
int trials,
double probabilityOfSuccess) |
Creates a sampler for the Binomial distribution.
|
static SharedStateDiscreteSampler |
MarsagliaTsangWangDiscreteSampler.Enumerated.of(org.apache.commons.rng.UniformRandomProvider rng,
double[] probabilities) |
Creates a sampler for an enumerated distribution of
n values each with an
associated probability. |
static SharedStateDiscreteSampler |
MarsagliaTsangWangDiscreteSampler.Poisson.of(org.apache.commons.rng.UniformRandomProvider rng,
double mean) |
Creates a sampler for the Poisson distribution.
|
static SharedStateDiscreteSampler |
PoissonSampler.of(org.apache.commons.rng.UniformRandomProvider rng,
double mean) |
Creates a new Poisson distribution sampler.
|
static SharedStateDiscreteSampler |
RejectionInversionZipfSampler.of(org.apache.commons.rng.UniformRandomProvider rng,
int numberOfElements,
double exponent) |
Creates a new Zipf distribution sampler.
|
static SharedStateDiscreteSampler |
SmallMeanPoissonSampler.of(org.apache.commons.rng.UniformRandomProvider rng,
double mean) |
Creates a new sampler for the Poisson distribution.
|
SharedStateDiscreteSampler |
AliasMethodDiscreteSampler.withUniformRandomProvider(org.apache.commons.rng.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 |
DiscreteUniformSampler.withUniformRandomProvider(org.apache.commons.rng.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(org.apache.commons.rng.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(org.apache.commons.rng.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(org.apache.commons.rng.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(org.apache.commons.rng.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(org.apache.commons.rng.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(org.apache.commons.rng.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(org.apache.commons.rng.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–2019 The Apache Software Foundation. All rights reserved.