Uses of Interface
org.apache.commons.rng.sampling.SharedStateSampler
Packages that use SharedStateSampler
Package
Description
This package provides sampling utilities.
This package contains classes for sampling from statistical distributions.
This package contains classes for sampling coordinates from shapes, for example a unit ball.
-
Uses of SharedStateSampler in org.apache.commons.rng.sampling
Subinterfaces of SharedStateSampler in org.apache.commons.rng.samplingModifier and TypeInterfaceDescriptioninterfaceSampler that generates values of a specified type and can create new instances to sample from the same state with a given source of randomness.Classes in org.apache.commons.rng.sampling that implement SharedStateSamplerModifier and TypeClassDescriptionclassSampling from aCollection.classClass for representing combinations of a sequence of integers.private static final classA composite continuous sampler with shared state support.private static final classA class to implement the SharedStateDiscreteSampler interface for a discrete probability sampler given a factory and the probability distribution.private static final classA composite discrete sampler with shared state support.private static final classA composite long sampler with shared state support.private static final classA composite object sampler with shared state support.classSampling from a collection of items with user-defined probabilities.classClass for representing permutations of a sequence of integers.classGenerate vectors isotropically located on the surface of a sphere.private static final classSample uniformly from the ends of a 1D unit line.private static final classSample uniformly from a 2D unit circle.private static final classSample uniformly from a 3D unit sphere.private static final classSample uniformly from a ND unit sphere.Methods in org.apache.commons.rng.sampling with type parameters of type SharedStateSamplerModifier and TypeMethodDescriptionprivate static <T extends SharedStateSampler<T>>
List<T> CompositeSamplers.copy(List<T> samplers, UniformRandomProvider rng) Create a copy instance of each sampler in the list of samplers using the given uniform random provider as the source of randomness. -
Uses of SharedStateSampler in org.apache.commons.rng.sampling.distribution
Subinterfaces of SharedStateSampler in org.apache.commons.rng.sampling.distributionModifier and TypeInterfaceDescriptioninterfaceSampler that generates values of typedoubleand can create new instances to sample from the same state with a given source of randomness.interfaceSampler that generates values of typeintand can create new instances to sample from the same state with a given source of randomness.interfaceSampler that generates values of typelongand can create new instances to sample from the same state with a given source of randomness.Classes in org.apache.commons.rng.sampling.distribution that implement SharedStateSamplerModifier and TypeClassDescriptionclassSampling from an exponential distribution.classSampling from the gamma distribution.private static final classClass to sample from the Gamma distribution when0 < alpha < 1.private static classBase class for a sampler from the Gamma distribution.private static final classClass to sample from the Gamma distribution when thealpha >= 1.classDistribution sampler that uses the Alias method.private static final classSample from the computed tables exploiting the small power-of-two table size.classBox-Muller algorithm for sampling from Gaussian distribution with mean 0 and standard deviation 1.classSampling from a beta distribution.private static classBase class to implement Cheng's algorithms for the beta distribution.private static final classComputes one sample using Cheng's BB algorithm, when beta distributionalphaandbetashape parameters are both larger than 1.private static final classComputes one sample using Cheng's BC algorithm, when at least one of beta distributionalphaorbetashape parameters is smaller than 1.classSampling from a uniform distribution.private static final classSpecialization to sample from an open interval(lo, hi).classSampling from a Dirichlet distribution.private static final classSample from a Dirichlet distribution with different concentration parameters for each category.private static final classSample from a symmetric Dirichlet distribution with the same concentration parameter for each category.classDiscrete uniform distribution sampler.private static classBase class for a sampler from a discrete uniform distribution.private static final classDiscrete uniform distribution sampler when the sample value is fixed.private static final classDiscrete uniform distribution sampler when the range between lower and upper is too large to fit in a positive integer.private static final classAdds an offset to an underlying discrete sampler.private static final classDiscrete uniform distribution sampler when the range is a power of 2 and greater than 1.private static final classDiscrete uniform distribution sampler when the range is small enough to fit in a positive integer.classDistribution sampler that uses the Fast Loaded Dice Roller (FLDR).private static final classClass to handle the edge case of observations in only one category.private static final classClass to implement the FLDR sample algorithm.classSampling from a Gaussian distribution with given mean and standard deviation.private static final classSample from the geometric distribution by using a related exponential distribution.private static final classSample from the geometric distribution when the probability of success is 1.final classCompute a sample fromnvalues each with an associated probability.classDistribution sampler that uses the inversion method.classDistribution sampler that uses the inversion method.classSampling from a Pareto distribution.final classSampler for the Poisson distribution.classSampler for the Poisson distribution.final classSampling from a Lévy distribution.classSampling from a log-normal distribution.classMarsaglia polar method for sampling from a Gaussian distribution with mean 0 and standard deviation 1.private static classThe base class for Marsaglia-Tsang-Wang samplers.private static final classReturn a fixed result for the Binomial distribution.private static final classReturn an inversion result for the Binomial distribution.private static final classAn implementation for the sample algorithm based on the decomposition of the index in the range[0,2^30)into 5 base-64 digits with 16-bit backing storage.private static final classAn implementation for the sample algorithm based on the decomposition of the index in the range[0,2^30)into 5 base-64 digits with 32-bit backing storage.private static final classAn implementation for the sample algorithm based on the decomposition of the index in the range[0,2^30)into 5 base-64 digits with 8-bit backing storage.classSampler for the Poisson distribution.classImplementation of the Zipf distribution.private static final classImplements the rejection-inversion method for the Zipf distribution.classSampler for the Poisson distribution.classSamples from a stable distribution.(package private) static classImplement the stable distribution case:alpha == 1andbeta != 0.private static classBase class for implementations of a stable distribution that requires an exponential random deviate.(package private) static classImplement the generic stable distribution case:alpha < 2andbeta == 0.(package private) static classImplement the generic stable distribution case:alpha < 2andbeta == 0.private static final classImplement thealpha = 1andbeta = 0stable distribution case (Cauchy distribution).(package private) static classImplement the generic stable distribution case:alpha < 2andbeta != 0.private static final classImplement thealpha = 2stable distribution case (Gaussian distribution).private static final classImplement thealpha = 0.5andbeta = 1stable distribution case (Levy distribution).private static final classClass for implementations of a stable distribution transformed by scale and location.(package private) static classImplement the generic stable distribution case:alpha < 2andbeta != 0.classSampling from a T distribution.private static final classSample from a t-distribution using a normal distribution.private static final classSample from a t-distribution using Bailey's algorithm.classDiscrete uniform distribution sampler generating values of typelong.private static final classDiscrete uniform distribution sampler when the sample value is fixed.private static final classDiscrete uniform distribution sampler when the range between lower and upper is too large to fit in a positive long.private static final classAdds an offset to an underlying discrete sampler.private static final classDiscrete uniform distribution sampler when the range is a power of 2 and greater than 1.private static final classDiscrete uniform distribution sampler when the range is small enough to fit in a positive long.classMarsaglia and Tsang "Ziggurat" method for sampling from a Gaussian distribution with mean 0 and standard deviation 1.classModified ziggurat method for sampling from Gaussian and exponential distributions.static classModified ziggurat method for sampling from an exponential distribution.private static final classSpecialisation which multiplies the standard exponential result by a specified mean.static final classModified ziggurat method for sampling from a Gaussian distribution with mean 0 and standard deviation 1. -
Uses of SharedStateSampler in org.apache.commons.rng.sampling.shape
Classes in org.apache.commons.rng.sampling.shape that implement SharedStateSamplerModifier and TypeClassDescriptionclassGenerate points uniformly distributed within a n-dimension box (hyperrectangle).private static final classSample uniformly from a box in 2D.private static final classSample uniformly from a box in 3D.private static final classSample uniformly from a box in ND.classGenerate points uniformly distributed on a line.private static final classSample uniformly from a line in 1D.private static final classSample uniformly from a line in 2D.private static final classSample uniformly from a line in 3D.private static final classSample uniformly from a line in ND.classGenerate points uniformly distributed within a tetrahedron.classGenerate points uniformly distributed within a triangle.private static final classSample uniformly from a triangle in 2D.private static final classSample uniformly from a triangle in 3D.private static final classSample uniformly from a triangle in ND.classGenerate coordinates uniformly distributed within the unit n-ball.private static final classSample uniformly from a 1D unit line.private static final classSample uniformly from a 2D unit disk.private static final classSample uniformly from a 3D unit ball.private static final classSample using ball point picking.