Package org.apache.commons.rng.sampling.distribution
package org.apache.commons.rng.sampling.distribution
This package contains classes for sampling from statistical distributions.
As of version 1.0, the code for specific distributions was adapted from
the corresponding classes in the development version of "Commons Math" (in
package org.apache.commons.math4.distribution).
When no specific algorithm is provided, one can still sample from any distribution, using the inverse method, as illustrated in:
Algorithms are described in e.g. Luc Devroye (1986), chapter 9 and chapter 10. This paper discusses Gaussian generators.
-
ClassDescriptionSampling from an exponential distribution.Sampling from the gamma distribution.Distribution sampler that uses the Alias method.Deprecated.Since version 1.1.Deprecated.Since version 1.1.Box-Muller algorithm for sampling from Gaussian distribution with mean 0 and standard deviation 1.Sampling from a beta distribution.Interface for a continuous distribution that can be sampled using the inversion method.Sampler that generates values of type
double.Sampling from a uniform distribution.Sampling from a Dirichlet distribution.Interface for a discrete distribution that can be sampled using the inversion method.Sampler that generates values of typeint.Discrete uniform distribution sampler.Distribution sampler that uses the Fast Loaded Dice Roller (FLDR).Sampling from a Gaussian distribution with given mean and standard deviation.Sampling from a geometric distribution.Compute a sample fromnvalues each with an associated probability.Distribution sampler that uses the inversion method.Distribution sampler that uses the inversion method.Sampling from a Pareto distribution.Sampler for the Poisson distribution.Sampler for the Poisson distribution.Sampling from a Lévy distribution.Sampling from a log-normal distribution.Sampler that generates values of typelong.Marsaglia polar method for sampling from a Gaussian distribution with mean 0 and standard deviation 1.Sampler for a discrete distribution using an optimised look-up table.Create a sampler for the Binomial distribution.Create a sampler for an enumerated distribution ofnvalues each with an associated probability.Create a sampler for the Poisson distribution.Marker interface for a sampler that generates values from an N(0,1) Gaussian distribution.Sampler for the Poisson distribution.Create a sampler for the Poisson distribution using a cache to minimise construction cost.Implementation of the Zipf distribution.Deprecated.Since version 1.1.Sampler that generates values of typedoubleand can create new instances to sample from the same state with a given source of randomness.Sampler that generates values of typeintand can create new instances to sample from the same state with a given source of randomness.Sampler that generates values of typelongand can create new instances to sample from the same state with a given source of randomness.Sampler for the Poisson distribution.Samples from a stable distribution.Sampling from a T distribution.Discrete uniform distribution sampler generating values of typelong.Marsaglia and Tsang "Ziggurat" method for sampling from a Gaussian distribution with mean 0 and standard deviation 1.Modified ziggurat method for sampling from Gaussian and exponential distributions.Modified ziggurat method for sampling from an exponential distribution.Modified ziggurat method for sampling from a Gaussian distribution with mean 0 and standard deviation 1.