Package org.apache.commons.rng.sampling
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.CompositeSamplers.SamplerBuilder.SamplerFactory<S> A factory for creating composite samplers.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.CompositeSamplers.CompositeSampler<S> A composite sampler.CompositeSamplers.ContinuousSamplerFactory A factory for creating a composite ContinuousSampler.CompositeSamplers.ContinuousSamplerFactory.CompositeContinuousSampler A composite continuous sampler.CompositeSamplers.DiscreteSamplerFactory A factory for creating a composite DiscreteSampler.CompositeSamplers.DiscreteSamplerFactory.CompositeDiscreteSampler A composite discrete sampler.CompositeSamplers.LongSamplerFactory A factory for creating a composite LongSampler.CompositeSamplers.LongSamplerFactory.CompositeLongSampler A composite long sampler.CompositeSamplers.ObjectSamplerFactory<T> A factory for creating a composite ObjectSampler.CompositeSamplers.ObjectSamplerFactory.CompositeObjectSampler<T> A composite object sampler.CompositeSamplers.SamplerBuilder<S> Builds a composite sampler.CompositeSamplers.SamplerBuilder.WeightedSampler<S> Contains a weighted sampler.CompositeSamplers.SharedStateContinuousSamplerFactory A factory for creating a composite SharedStateContinuousSampler.CompositeSamplers.SharedStateContinuousSamplerFactory.CompositeSharedStateContinuousSampler A composite continuous sampler with shared state support.CompositeSamplers.SharedStateDiscreteProbabilitySampler A class to implement the SharedStateDiscreteSampler interface for a discrete probability sampler given a factory and the probability distribution.CompositeSamplers.SharedStateDiscreteSamplerFactory A factory for creating a composite SharedStateDiscreteSampler.CompositeSamplers.SharedStateDiscreteSamplerFactory.CompositeSharedStateDiscreteSampler A composite discrete sampler with shared state support.CompositeSamplers.SharedStateLongSamplerFactory A factory for creating a composite SharedStateLongSampler.CompositeSamplers.SharedStateLongSamplerFactory.CompositeSharedStateLongSampler A composite long sampler with shared state support.CompositeSamplers.SharedStateObjectSamplerFactory<T> A factory for creating a composite SharedStateObjectSampler.CompositeSamplers.SharedStateObjectSamplerFactory.CompositeSharedStateObjectSampler<T> A composite object sampler with shared state support.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.SubsetSamplerUtils Utility class for selecting a subset of a sequence of integers.UnitSphereSampler Generate vectors isotropically located on the surface of a sphere.UnitSphereSampler.UnitSphereSampler1D Sample uniformly from the ends of a 1D unit line.UnitSphereSampler.UnitSphereSampler2D Sample uniformly from a 2D unit circle.UnitSphereSampler.UnitSphereSampler3D Sample uniformly from a 3D unit sphere.UnitSphereSampler.UnitSphereSamplerND Sample uniformly from a ND unit sphere. -
Enum Summary Enum Description CompositeSamplers.DiscreteProbabilitySampler The DiscreteProbabilitySampler class defines implementations that sample from a user-defined discrete probability distribution.CompositeSamplers.SamplerBuilder.Specialisation The specialisation of composite sampler to build.