Package org.apache.commons.rng.sampling
Samplers
This package provides sampling utilities.
The distribution
sub-package provides sampling from statistical distributions.
The shape
sub-package provides sampling coordinates from shapes.
-
Interface Summary Interface Description CompositeSamplers.Builder<S> Builds a composite sampler.CompositeSamplers.DiscreteProbabilitySamplerFactory A factory for creating a sampler of a user-defined discrete probability distribution.ObjectSampler<T> Sampler that generates values of a specified type.SharedStateObjectSampler<T> Sampler that generates values of a specified type and can create new instances to sample from the same state with a given source of randomness.SharedStateSampler<R> Applies to samplers that can share state between instances. -
Class Summary Class Description CollectionSampler<T> Sampling from aCollection
.CombinationSampler Class for representing combinations of a sequence of integers.CompositeSamplers Factory class to create a sampler that combines sampling from multiple samplers.DiscreteProbabilityCollectionSampler<T> Sampling from a collection of items with user-defined probabilities.ListSampler Sampling from aList
.PermutationSampler Class for representing permutations of a sequence of integers.UnitSphereSampler Generate vectors isotropically located on the surface of a sphere. -
Enum Summary Enum Description CompositeSamplers.DiscreteProbabilitySampler The DiscreteProbabilitySampler class defines implementations that sample from a user-defined discrete probability distribution.