Uses of Interfaceorg.apache.commons.rng.sampling.distribution.SharedStateDiscreteSampler

• Packages that use SharedStateDiscreteSampler
Package Description
org.apache.commons.rng.sampling
Samplers
org.apache.commons.rng.sampling.distribution
Distribution samplers
• Uses of SharedStateDiscreteSampler in org.apache.commons.rng.sampling

Methods in org.apache.commons.rng.sampling that return types with arguments of type SharedStateDiscreteSampler
Modifier and Type Method Description
static CompositeSamplers.Builder<SharedStateDiscreteSampler> CompositeSamplers.newSharedStateDiscreteSamplerBuilder()
Create a new builder for a composite SharedStateDiscreteSampler.
• Uses of SharedStateDiscreteSampler in org.apache.commons.rng.sampling.distribution

Classes in org.apache.commons.rng.sampling.distribution that implement SharedStateDiscreteSampler
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.
Methods in org.apache.commons.rng.sampling.distribution that return SharedStateDiscreteSampler
Modifier and Type Method Description
SharedStateDiscreteSampler PoissonSamplerCache.createSharedStateSampler​(UniformRandomProvider rng, double mean)
Creates a new Poisson sampler.
static SharedStateDiscreteSampler AliasMethodDiscreteSampler.of​(UniformRandomProvider rng, double[] probabilities)
Creates a sampler.
static SharedStateDiscreteSampler AliasMethodDiscreteSampler.of​(UniformRandomProvider rng, double[] probabilities, int alpha)
Creates a sampler.
static SharedStateDiscreteSampler DiscreteUniformSampler.of​(UniformRandomProvider rng, int lower, int upper)
Creates a new discrete uniform distribution sampler.
static SharedStateDiscreteSampler GeometricSampler.of​(UniformRandomProvider rng, double probabilityOfSuccess)
Creates a new geometric distribution sampler.
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 InverseTransformDiscreteSampler.of​(UniformRandomProvider rng, DiscreteInverseCumulativeProbabilityFunction function)
Create a new inverse-transform discrete sampler.
static SharedStateDiscreteSampler KempSmallMeanPoissonSampler.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.Binomial.of​(UniformRandomProvider rng, int trials, double probabilityOfSuccess)
Creates a sampler for the Binomial distribution.
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 MarsagliaTsangWangDiscreteSampler.Poisson.of​(UniformRandomProvider rng, double mean)
Creates a sampler for the Poisson distribution.
static SharedStateDiscreteSampler PoissonSampler.of​(UniformRandomProvider rng, double mean)
Creates a new Poisson distribution sampler.
static SharedStateDiscreteSampler RejectionInversionZipfSampler.of​(UniformRandomProvider rng, int numberOfElements, double exponent)
Creates a new Zipf distribution sampler.
static SharedStateDiscreteSampler SmallMeanPoissonSampler.of​(UniformRandomProvider rng, double mean)
Creates a new sampler for the Poisson distribution.
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 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 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 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 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 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 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.
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.