Uses of Interface
org.apache.commons.rng.UniformRandomProvider
-
Packages that use UniformRandomProvider Package Description org.apache.commons.rng This package contains the library's interface to be used by client code that needs a generator of sequences of pseudo-random numbers that are uniformly distributed in a specified range.org.apache.commons.rng.core Base classes for thegeneration of uniformly distributed random numbers.org.apache.commons.rng.core.source32 Concrete algorithms forint-based sources of randomness.org.apache.commons.rng.core.source64 Concrete algorithms forlong-based sources of randomness.org.apache.commons.rng.core.util This package contains utilities to combine/split primitive types.org.apache.commons.rng.sampling This package provides sampling utilities.org.apache.commons.rng.sampling.distribution This package contains classes for sampling from statistical distributions.org.apache.commons.rng.sampling.shape This package contains classes for sampling coordinates from shapes, for example a unit ball.org.apache.commons.rng.simple This package providesfactory methodsby which low-level classes implemented in module "commons-rng-core" are instantiated.org.apache.commons.rng.simple.internal Utilities for seed conversion. -
-
Uses of UniformRandomProvider in org.apache.commons.rng
Subinterfaces of UniformRandomProvider in org.apache.commons.rng Modifier and Type Interface Description interfaceJumpableUniformRandomProviderApplies to generators that can be advanced a large number of steps of the output sequence in a single operation.interfaceLongJumpableUniformRandomProviderApplies to generators that can be advanced a very large number of steps of the output sequence in a single operation.interfaceRestorableUniformRandomProviderApplies to generators whose internal state can be saved and restored.interfaceSplittableUniformRandomProviderApplies to generators that can be split into two objects (the original and a new instance) each of which implements the same interface (and can be recursively split indefinitely).Methods in org.apache.commons.rng that return UniformRandomProvider Modifier and Type Method Description UniformRandomProviderJumpableUniformRandomProvider. jump()Creates a copy of the UniformRandomProvider and then advances the state of the current instance.Methods in org.apache.commons.rng that return types with arguments of type UniformRandomProvider Modifier and Type Method Description default java.util.stream.Stream<UniformRandomProvider>JumpableUniformRandomProvider. jumps()Returns an effectively unlimited stream of new random generators, each of which implements theUniformRandomProviderinterface.default java.util.stream.Stream<UniformRandomProvider>JumpableUniformRandomProvider. jumps(long streamSize)Returns a stream producing the givenstreamSizenumber of new random generators, each of which implements theUniformRandomProviderinterface.Methods in org.apache.commons.rng with parameters of type UniformRandomProvider Modifier and Type Method Description (package private) static voidUniformRandomProviderSupport. nextBytes(UniformRandomProvider source, byte[] bytes, int start, int len)Generates random bytes and places them into a user-supplied array.(package private) static doubleUniformRandomProviderSupport. nextDouble(UniformRandomProvider source, double bound)Generates adoublevalue between 0 (inclusive) and the specified value (exclusive).(package private) static doubleUniformRandomProviderSupport. nextDouble(UniformRandomProvider source, double origin, double bound)Generates adoublevalue between the specifiedorigin(inclusive) and the specifiedbound(exclusive).(package private) static floatUniformRandomProviderSupport. nextFloat(UniformRandomProvider source, float bound)Generates afloatvalue between 0 (inclusive) and the specified value (exclusive).(package private) static floatUniformRandomProviderSupport. nextFloat(UniformRandomProvider source, float origin, float bound)Generates afloatvalue between the specifiedorigin(inclusive) and the specifiedbound(exclusive).(package private) static intUniformRandomProviderSupport. nextInt(UniformRandomProvider source, int n)Generates anintvalue between 0 (inclusive) and the specified value (exclusive).(package private) static intUniformRandomProviderSupport. nextInt(UniformRandomProvider source, int origin, int bound)Generates anintvalue between the specifiedorigin(inclusive) and the specifiedbound(exclusive).(package private) static longUniformRandomProviderSupport. nextLong(UniformRandomProvider source, long n)Generates anlongvalue between 0 (inclusive) and the specified value (exclusive).(package private) static longUniformRandomProviderSupport. nextLong(UniformRandomProvider source, long origin, long bound)Generates alongvalue between the specifiedorigin(inclusive) and the specifiedbound(exclusive).SplittableUniformRandomProviderSplittableUniformRandomProvider. split(UniformRandomProvider source)Creates a new random generator, split off from this one, that implements theSplittableUniformRandomProviderinterface. -
Uses of UniformRandomProvider in org.apache.commons.rng.core
Classes in org.apache.commons.rng.core that implement UniformRandomProvider Modifier and Type Class Description classBaseProviderBase class with default implementation for common methods. -
Uses of UniformRandomProvider in org.apache.commons.rng.core.source32
Classes in org.apache.commons.rng.core.source32 that implement UniformRandomProvider Modifier and Type Class Description (package private) classAbstractPcg6432This abstract class is a base for algorithms from the Permuted Congruential Generator (PCG) family that use an internal 64-bit Linear Congruential Generator (LCG) and output 32-bits per cycle.(package private) classAbstractPcgMcg6432This abstract class is a base for algorithms from the Permuted Congruential Generator (PCG) family that use an internal 64-bit Multiplicative Congruential Generator (MCG) and output 32-bits per cycle.classAbstractWellThis abstract class implements the WELL class of pseudo-random number generator from François Panneton, Pierre L'Ecuyer and Makoto Matsumoto.(package private) classAbstractXoRoShiRo64This abstract class is a base for algorithms from the Xor-Shift-Rotate family of 32-bit generators with 64-bits of state.(package private) classAbstractXoShiRo128This abstract class is a base for algorithms from the Xor-Shift-Rotate family of 32-bit generators with 128-bits of state.classDotyHumphreySmallFastCounting32Implement the Small, Fast, Counting (SFC) 32-bit generator of Chris Doty-Humphrey.classIntProviderBase class for all implementations that provide anint-based source randomness.classISAACRandomA fast cryptographic pseudo-random number generator.classJDKRandomA provider that uses theRandom.nextInt()method of the JDK'sRandomclass as the source of randomness.classJenkinsSmallFast32Implement Bob Jenkins's small fast (JSF) 32-bit generator.classKISSRandomPort from Marsaglia's "KISS" algorithm.classL32X64MixA 32-bit all purpose generator.classMersenneTwisterThis class implements a powerful pseudo-random number generator developed by Makoto Matsumoto and Takuji Nishimura during 1996-1997.classMiddleSquareWeylSequenceMiddle Square Weyl Sequence Random Number Generator.classMultiplyWithCarry256Port from Marsaglia's "Multiply-With-Carry" algorithm.classPcgMcgXshRr32A Permuted Congruential Generator (PCG) that is composed of a 64-bit Multiplicative Congruential Generator (MCG) combined with the XSH-RR (xorshift; random rotate) output transformation to create 32-bit output.classPcgMcgXshRs32A Permuted Congruential Generator (PCG) that is composed of a 64-bit Multiplicative Congruential Generator (MCG) combined with the XSH-RS (xorshift; random shift) output transformation to create 32-bit output.classPcgXshRr32A Permuted Congruential Generator (PCG) that is composed of a 64-bit Linear Congruential Generator (LCG) combined with the XSH-RR (xorshift; random rotate) output transformation to create 32-bit output.classPcgXshRs32A Permuted Congruential Generator (PCG) that is composed of a 64-bit Linear Congruential Generator (LCG) combined with the XSH-RS (xorshift; random shift) output transformation to create 32-bit output.classWell1024aThis class implements the WELL1024a pseudo-random number generator from François Panneton, Pierre L'Ecuyer and Makoto Matsumoto.classWell19937aThis class implements the WELL19937a pseudo-random number generator from François Panneton, Pierre L'Ecuyer and Makoto Matsumoto.classWell19937cThis class implements the WELL19937c pseudo-random number generator from François Panneton, Pierre L'Ecuyer and Makoto Matsumoto.classWell44497aThis class implements the WELL44497a pseudo-random number generator from François Panneton, Pierre L'Ecuyer and Makoto Matsumoto.classWell44497bThis class implements the WELL44497b pseudo-random number generator from François Panneton, Pierre L'Ecuyer and Makoto Matsumoto.classWell512aThis class implements the WELL512a pseudo-random number generator from François Panneton, Pierre L'Ecuyer and Makoto Matsumoto.classXoRoShiRo64StarA fast 32-bit generator suitable forfloatgeneration.classXoRoShiRo64StarStarA fast all-purpose 32-bit generator.classXoShiRo128PlusA fast 32-bit generator suitable forfloatgeneration.classXoShiRo128PlusPlusA fast all-purpose 32-bit generator.classXoShiRo128StarStarA fast all-purpose 32-bit generator.Methods in org.apache.commons.rng.core.source32 that return UniformRandomProvider Modifier and Type Method Description UniformRandomProviderAbstractXoShiRo128. jump()Creates a copy of the UniformRandomProvider and then advances the state of the current instance.UniformRandomProviderL32X64Mix. jump()Creates a copy of the UniformRandomProvider and then retreats the state of the current instance.Methods in org.apache.commons.rng.core.source32 with parameters of type UniformRandomProvider Modifier and Type Method Description private static SplittableUniformRandomProviderL32X64Mix. create(long seed, UniformRandomProvider source)Create a new instance using the givenseedandsourceof randomness to initialise the instance.SplittableUniformRandomProviderL32X64Mix. split(UniformRandomProvider source)Creates a new random generator, split off from this one, that implements theSplittableUniformRandomProviderinterface. -
Uses of UniformRandomProvider in org.apache.commons.rng.core.source64
Classes in org.apache.commons.rng.core.source64 that implement UniformRandomProvider Modifier and Type Class Description (package private) classAbstractL128This abstract class is a base for algorithms from the LXM family of generators with a 128-bit LCG sub-generator.(package private) classAbstractL64This abstract class is a base for algorithms from the LXM family of generators with a 64-bit LCG sub-generator.(package private) classAbstractL64X128This abstract class is a base for algorithms from the LXM family of generators with a 64-bit LCG and 128-bit XBG sub-generator.(package private) classAbstractXoRoShiRo1024This abstract class is a base for algorithms from the Xor-Shift-Rotate family of 64-bit generators with 1024-bits of state.(package private) classAbstractXoRoShiRo128This abstract class is a base for algorithms from the Xor-Shift-Rotate family of 64-bit generators with 128-bits of state.(package private) classAbstractXoShiRo256This abstract class is a base for algorithms from the Xor-Shift-Rotate family of 64-bit generators with 256-bits of state.(package private) classAbstractXoShiRo512This abstract class is a base for algorithms from the Xor-Shift-Rotate family of 64-bit generators with 512-bits of state.classDotyHumphreySmallFastCounting64Implement the Small, Fast, Counting (SFC) 64-bit generator of Chris Doty-Humphrey.classJenkinsSmallFast64Implement Bob Jenkins's small fast (JSF) 64-bit generator.classL128X1024MixA 64-bit all purpose generator.classL128X128MixA 64-bit all purpose generator.classL128X256MixA 64-bit all purpose generator.classL64X1024MixA 64-bit all purpose generator.classL64X128MixA 64-bit all purpose generator.classL64X128StarStarA 64-bit all purpose generator.classL64X256MixA 64-bit all purpose generator.classLongProviderBase class for all implementations that provide along-based source randomness.classMersenneTwister64This class provides the 64-bits version of the originally 32-bitsMersenne Twister.classPcgRxsMXs64A Permuted Congruential Generator (PCG) that is composed of a 64-bit Linear Congruential Generator (LCG) combined with the RXS-M-XS (random xorshift; multiply; xorshift) output transformation to create 64-bit output.classSplitMix64A fast RNG, with 64 bits of state, that can be used to initialize the state of other generators.classTwoCmresRandom number generator designed by Mark D. Overton.classXoRoShiRo1024PlusPlusA large-state all-purpose 64-bit generator.classXoRoShiRo1024StarA large-state 64-bit generator suitable fordoublegeneration.classXoRoShiRo1024StarStarA large-state all-purpose 64-bit generator.classXoRoShiRo128PlusA fast 64-bit generator suitable fordoublegeneration.classXoRoShiRo128PlusPlusA fast all-purpose 64-bit generator.classXoRoShiRo128StarStarA fast all-purpose 64-bit generator.classXorShift1024StarA fast RNG implementing theXorShift1024*algorithm.classXorShift1024StarPhiA fast RNG implementing theXorShift1024*algorithm.classXoShiRo256PlusA fast 64-bit generator suitable fordoublegeneration.classXoShiRo256PlusPlusA fast all-purpose 64-bit generator.classXoShiRo256StarStarA fast all-purpose 64-bit generator.classXoShiRo512PlusA fast 64-bit generator suitable fordoublegeneration.classXoShiRo512PlusPlusA fast all-purpose generator.classXoShiRo512StarStarA fast all-purpose generator.Methods in org.apache.commons.rng.core.source64 that return UniformRandomProvider Modifier and Type Method Description UniformRandomProviderAbstractL128. jump()Creates a copy of the UniformRandomProvider and then retreats the state of the current instance.UniformRandomProviderAbstractL64. jump()Creates a copy of the UniformRandomProvider and then retreats the state of the current instance.UniformRandomProviderAbstractL64X128. jump()Creates a copy of the UniformRandomProvider and then retreats the state of the current instance.UniformRandomProviderAbstractXoRoShiRo1024. jump()Creates a copy of the UniformRandomProvider and then advances the state of the current instance.UniformRandomProviderAbstractXoRoShiRo128. jump()Creates a copy of the UniformRandomProvider and then advances the state of the current instance.UniformRandomProviderAbstractXoShiRo256. jump()Creates a copy of the UniformRandomProvider and then advances the state of the current instance.UniformRandomProviderAbstractXoShiRo512. jump()Creates a copy of the UniformRandomProvider and then advances the state of the current instance.UniformRandomProviderL128X1024Mix. jump()Creates a copy of the UniformRandomProvider and then retreats the state of the current instance.UniformRandomProviderL128X128Mix. jump()Creates a copy of the UniformRandomProvider and then retreats the state of the current instance.UniformRandomProviderL128X256Mix. jump()Creates a copy of the UniformRandomProvider and then retreats the state of the current instance.UniformRandomProviderL64X1024Mix. jump()Creates a copy of the UniformRandomProvider and then retreats the state of the current instance.UniformRandomProviderL64X256Mix. jump()Creates a copy of the UniformRandomProvider and then retreats the state of the current instance.UniformRandomProviderXoRoShiRo128PlusPlus. jump()Creates a copy of the UniformRandomProvider and then advances the state of the current instance.UniformRandomProviderXorShift1024Star. jump()Creates a copy of the UniformRandomProvider and then advances the state of the current instance.Methods in org.apache.commons.rng.core.source64 with parameters of type UniformRandomProvider Modifier and Type Method Description private static SplittableUniformRandomProviderL128X1024Mix. create(long seed, UniformRandomProvider source)Create a new instance using the givenseedandsourceof randomness to initialise the instance.private static SplittableUniformRandomProviderL128X128Mix. create(long seed, UniformRandomProvider source)Create a new instance using the givenseedandsourceof randomness to initialise the instance.private static SplittableUniformRandomProviderL128X256Mix. create(long seed, UniformRandomProvider source)Create a new instance using the givenseedandsourceof randomness to initialise the instance.private static SplittableUniformRandomProviderL64X1024Mix. create(long seed, UniformRandomProvider source)Create a new instance using the givenseedandsourceof randomness to initialise the instance.private static SplittableUniformRandomProviderL64X128Mix. create(long seed, UniformRandomProvider source)Create a new instance using the givenseedandsourceof randomness to initialise the instance.private static SplittableUniformRandomProviderL64X128StarStar. create(long seed, UniformRandomProvider source)Create a new instance using the givenseedandsourceof randomness to initialise the instance.private static SplittableUniformRandomProviderL64X256Mix. create(long seed, UniformRandomProvider source)Create a new instance using the givenseedandsourceof randomness to initialise the instance.SplittableUniformRandomProviderL128X1024Mix. split(UniformRandomProvider source)Creates a new random generator, split off from this one, that implements theSplittableUniformRandomProviderinterface.SplittableUniformRandomProviderL128X128Mix. split(UniformRandomProvider source)Creates a new random generator, split off from this one, that implements theSplittableUniformRandomProviderinterface.SplittableUniformRandomProviderL128X256Mix. split(UniformRandomProvider source)Creates a new random generator, split off from this one, that implements theSplittableUniformRandomProviderinterface.SplittableUniformRandomProviderL64X1024Mix. split(UniformRandomProvider source)Creates a new random generator, split off from this one, that implements theSplittableUniformRandomProviderinterface.SplittableUniformRandomProviderL64X128Mix. split(UniformRandomProvider source)Creates a new random generator, split off from this one, that implements theSplittableUniformRandomProviderinterface.SplittableUniformRandomProviderL64X128StarStar. split(UniformRandomProvider source)Creates a new random generator, split off from this one, that implements theSplittableUniformRandomProviderinterface.SplittableUniformRandomProviderL64X256Mix. split(UniformRandomProvider source)Creates a new random generator, split off from this one, that implements theSplittableUniformRandomProviderinterface. -
Uses of UniformRandomProvider in org.apache.commons.rng.core.util
Methods in org.apache.commons.rng.core.util with parameters of type UniformRandomProvider Modifier and Type Method Description TRandomStreams.SeededObjectFactory. create(long seed, UniformRandomProvider source)Creates the object.(package private) static longRandomStreams. createSeed(UniformRandomProvider rng)Creates a seed to prepend to a counter. -
Uses of UniformRandomProvider in org.apache.commons.rng.sampling
Fields in org.apache.commons.rng.sampling declared as UniformRandomProvider Modifier and Type Field Description private UniformRandomProviderCollectionSampler. rngRNG.private UniformRandomProviderCombinationSampler. rngRNG.private UniformRandomProviderPermutationSampler. rngRNG.private UniformRandomProviderUnitSphereSampler.UnitSphereSampler1D. rngThe source of randomness.Methods in org.apache.commons.rng.sampling with parameters of type UniformRandomProvider Modifier and Type Method Description SCompositeSamplers.Builder. build(UniformRandomProvider rng)Builds the composite sampler.SCompositeSamplers.SamplerBuilder. build(UniformRandomProvider rng)Builds the composite sampler.private static <T extends SharedStateSampler<T>>
java.util.List<T>CompositeSamplers. copy(java.util.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.DiscreteSamplerCompositeSamplers.DiscreteProbabilitySamplerFactory. create(UniformRandomProvider rng, double[] probabilities)Creates the sampler.private DiscreteSamplerCompositeSamplers.SamplerBuilder. createDiscreteSampler(UniformRandomProvider rng, double[] weights)Creates the discrete sampler of the enumerated probability distribution.private static SharedStateDiscreteSamplerDiscreteProbabilityCollectionSampler. createSampler(UniformRandomProvider rng, double[] probabilities)Creates the sampler of the enumerated probability distribution.private static <T> SharedStateDiscreteSamplerDiscreteProbabilityCollectionSampler. createSampler(UniformRandomProvider rng, java.util.List<T> collection, double[] probabilities)Creates the sampler of the enumerated probability distribution.static UnitSphereSamplerUnitSphereSampler. of(UniformRandomProvider rng, int dimension)Create a unit sphere sampler for the given dimension.(package private) static int[]SubsetSamplerUtils. partialSample(int[] domain, int steps, UniformRandomProvider rng, boolean upper)Perform a partial Fisher-Yates shuffle of the domain in-place and return either the upper fully shuffled section or the remaining lower partially shuffled section.static <T> java.util.List<T>ListSampler. sample(UniformRandomProvider rng, java.util.List<T> collection, int k)Generates a list of sizekwhose entries are selected randomly, without repetition, from the items in the givencollection.static boolean[]ArraySampler. shuffle(UniformRandomProvider rng, boolean[] array)Shuffles the entries of the given array.static boolean[]ArraySampler. shuffle(UniformRandomProvider rng, boolean[] array, int from, int to)Shuffles the entries of the given array in the range[from, to).static byte[]ArraySampler. shuffle(UniformRandomProvider rng, byte[] array)Shuffles the entries of the given array.static byte[]ArraySampler. shuffle(UniformRandomProvider rng, byte[] array, int from, int to)Shuffles the entries of the given array in the range[from, to).static char[]ArraySampler. shuffle(UniformRandomProvider rng, char[] array)Shuffles the entries of the given array.static char[]ArraySampler. shuffle(UniformRandomProvider rng, char[] array, int from, int to)Shuffles the entries of the given array in the range[from, to).static double[]ArraySampler. shuffle(UniformRandomProvider rng, double[] array)Shuffles the entries of the given array.static double[]ArraySampler. shuffle(UniformRandomProvider rng, double[] array, int from, int to)Shuffles the entries of the given array in the range[from, to).static float[]ArraySampler. shuffle(UniformRandomProvider rng, float[] array)Shuffles the entries of the given array.static float[]ArraySampler. shuffle(UniformRandomProvider rng, float[] array, int from, int to)Shuffles the entries of the given array in the range[from, to).static int[]ArraySampler. shuffle(UniformRandomProvider rng, int[] array)Shuffles the entries of the given array.static int[]ArraySampler. shuffle(UniformRandomProvider rng, int[] array, int from, int to)Shuffles the entries of the given array in the range[from, to).static long[]ArraySampler. shuffle(UniformRandomProvider rng, long[] array)Shuffles the entries of the given array.static long[]ArraySampler. shuffle(UniformRandomProvider rng, long[] array, int from, int to)Shuffles the entries of the given array in the range[from, to).static short[]ArraySampler. shuffle(UniformRandomProvider rng, short[] array)Shuffles the entries of the given array.static short[]ArraySampler. shuffle(UniformRandomProvider rng, short[] array, int from, int to)Shuffles the entries of the given array in the range[from, to).static <T> T[]ArraySampler. shuffle(UniformRandomProvider rng, T[] array)Shuffles the entries of the given array.static <T> T[]ArraySampler. shuffle(UniformRandomProvider rng, T[] array, int from, int to)Shuffles the entries of the given array in the range[from, to).static <T> voidListSampler. shuffle(UniformRandomProvider rng, java.util.List<T> list)Shuffles the entries of the given array, using the Fisher-Yates algorithm.static <T> voidListSampler. shuffle(UniformRandomProvider rng, java.util.List<T> list, int start, boolean towardHead)Shuffles the entries of the given array, using the Fisher-Yates algorithm.static voidPermutationSampler. shuffle(UniformRandomProvider rng, int[] list)Shuffles the entries of the given array.static voidPermutationSampler. shuffle(UniformRandomProvider rng, int[] list, int start, boolean towardHead)Shuffles the entries of the given array, using the Fisher-Yates algorithm.CollectionSampler<T>CollectionSampler. 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.CombinationSamplerCombinationSampler. 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.CompositeSamplers.SharedStateContinuousSamplerFactory.CompositeSharedStateContinuousSamplerCompositeSamplers.SharedStateContinuousSamplerFactory.CompositeSharedStateContinuousSampler. withUniformRandomProvider(UniformRandomProvider rng)SharedStateDiscreteSamplerCompositeSamplers.SharedStateDiscreteProbabilitySampler. withUniformRandomProvider(UniformRandomProvider rng)CompositeSamplers.SharedStateDiscreteSamplerFactory.CompositeSharedStateDiscreteSamplerCompositeSamplers.SharedStateDiscreteSamplerFactory.CompositeSharedStateDiscreteSampler. withUniformRandomProvider(UniformRandomProvider rng)CompositeSamplers.SharedStateLongSamplerFactory.CompositeSharedStateLongSamplerCompositeSamplers.SharedStateLongSamplerFactory.CompositeSharedStateLongSampler. withUniformRandomProvider(UniformRandomProvider rng)CompositeSamplers.SharedStateObjectSamplerFactory.CompositeSharedStateObjectSampler<T>CompositeSamplers.SharedStateObjectSamplerFactory.CompositeSharedStateObjectSampler. withUniformRandomProvider(UniformRandomProvider rng)DiscreteProbabilityCollectionSampler<T>DiscreteProbabilityCollectionSampler. 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.PermutationSamplerPermutationSampler. 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.RSharedStateSampler. 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.UnitSphereSamplerUnitSphereSampler.UnitSphereSampler1D. withUniformRandomProvider(UniformRandomProvider rng)UnitSphereSamplerUnitSphereSampler.UnitSphereSampler2D. withUniformRandomProvider(UniformRandomProvider rng)UnitSphereSamplerUnitSphereSampler.UnitSphereSampler3D. withUniformRandomProvider(UniformRandomProvider rng)UnitSphereSamplerUnitSphereSampler.UnitSphereSamplerND. withUniformRandomProvider(UniformRandomProvider rng)UnitSphereSamplerUnitSphereSampler. 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. -
Uses of UniformRandomProvider in org.apache.commons.rng.sampling.distribution
Fields in org.apache.commons.rng.sampling.distribution declared as UniformRandomProvider Modifier and Type Field Description private UniformRandomProviderAhrensDieterExponentialSampler. rngUnderlying source of randomness.protected UniformRandomProviderAhrensDieterMarsagliaTsangGammaSampler.BaseGammaSampler. rngUnderlying source of randomness.protected UniformRandomProviderAliasMethodDiscreteSampler. rngUnderlying source of randomness.private UniformRandomProviderBoxMullerGaussianSampler. rngDeprecated.Underlying source of randomness.private UniformRandomProviderBoxMullerNormalizedGaussianSampler. rngUnderlying source of randomness.protected UniformRandomProviderChengBetaSampler.BaseChengBetaSampler. rngUnderlying source of randomness.private UniformRandomProviderContinuousUniformSampler. rngUnderlying source of randomness.private UniformRandomProviderDirichletSampler. rngRNG (used for the toString() method).protected UniformRandomProviderDiscreteUniformSampler.AbstractDiscreteUniformSampler. rngUnderlying source of randomness.private UniformRandomProviderFastLoadedDiceRollerDiscreteSampler.FLDRSampler. rngUnderlying source of randomness.private UniformRandomProviderGeometricSampler.GeometricExponentialSampler. rngUnderlying source of randomness.private UniformRandomProviderGuideTableDiscreteSampler. rngUnderlying source of randomness.private UniformRandomProviderInverseTransformContinuousSampler. rngUnderlying source of randomness.private UniformRandomProviderInverseTransformDiscreteSampler. rngUnderlying source of randomness.private UniformRandomProviderInverseTransformParetoSampler. rngUnderlying source of randomness.private UniformRandomProviderKempSmallMeanPoissonSampler. rngUnderlying source of randomness.private UniformRandomProviderLargeMeanPoissonSampler. rngUnderlying source of randomness.private UniformRandomProviderLevySampler. rngRNG (used for the toString() method).private UniformRandomProviderMarsagliaNormalizedGaussianSampler. rngUnderlying source of randomness.protected UniformRandomProviderMarsagliaTsangWangDiscreteSampler.AbstractMarsagliaTsangWangDiscreteSampler. rngUnderlying source of randomness.private UniformRandomProviderRejectionInversionZipfSampler.RejectionInversionZipfSamplerImpl. rngUnderlying source of randomness.private UniformRandomProviderSamplerBase. rngDeprecated.RNG.private UniformRandomProviderSmallMeanPoissonSampler. rngUnderlying source of randomness.private UniformRandomProviderStableSampler. rngUnderlying source of randomness.private UniformRandomProviderTSampler. rngSource of randomness.protected UniformRandomProviderUniformLongSampler. rngUnderlying source of randomness.private UniformRandomProviderZigguratNormalizedGaussianSampler. rngUnderlying source of randomness.private UniformRandomProviderZigguratSampler. rngUnderlying source of randomness.Methods in org.apache.commons.rng.sampling.distribution with parameters of type UniformRandomProvider Modifier and Type Method Description private static StableSamplerStableSampler. create(UniformRandomProvider rng, double alpha, double beta)Creates a standardized sampler of a stable distribution with zero location and unit scale.private static SharedStateDiscreteSamplerMarsagliaTsangWangDiscreteSampler.Binomial. createBinomialDistributionSampler(UniformRandomProvider rng, int trials, double probabilityOfSuccess)Creates the Binomial distribution sampler.private static SharedStateDiscreteSamplerMarsagliaTsangWangDiscreteSampler.Binomial. createBinomialDistributionSamplerFromRange(UniformRandomProvider rng, int trials, double p, boolean useInversion, double p0, int begin, int end)Creates the Binomial distribution sampler using only the probability values forXbetween the begin and the end (inclusive).private static SharedStateDiscreteSamplerMarsagliaTsangWangDiscreteSampler.Poisson. createPoissonDistributionFromX0(UniformRandomProvider rng, double mean)Creates the Poisson distribution by computing probabilities recursively fromX=0.private static SharedStateDiscreteSamplerMarsagliaTsangWangDiscreteSampler.Poisson. createPoissonDistributionFromXMode(UniformRandomProvider rng, double mean)Creates the Poisson distribution by computing probabilities recursively upward and downward fromX=mode, the location of the largest p-value.DiscreteSamplerPoissonSamplerCache. createPoissonSampler(UniformRandomProvider rng, double mean)private static SharedStateContinuousSamplerDirichletSampler. createSampler(UniformRandomProvider rng, double alpha)Creates a gamma sampler for a category with the given concentration parameter.private static FastLoadedDiceRollerDiscreteSamplerFastLoadedDiceRollerDiscreteSampler. createSampler(UniformRandomProvider rng, long[] frequencies, int[] offsets, int[] indices, java.math.BigInteger m)Creates the sampler.private static FastLoadedDiceRollerDiscreteSamplerFastLoadedDiceRollerDiscreteSampler. createSampler(UniformRandomProvider rng, long[] frequencies, int[] indices, long m)Creates the sampler.private static SharedStateDiscreteSamplerMarsagliaTsangWangDiscreteSampler. createSampler(UniformRandomProvider rng, java.lang.String distributionName, int[] prob, int offset)Create a new instance for probabilitiesp(i)where the sample valuexisi + offset.SharedStateDiscreteSamplerPoissonSamplerCache. createSharedStateSampler(UniformRandomProvider rng, double mean)Creates a new Poisson sampler.private static DiscreteUniformSampler.AbstractDiscreteUniformSamplerDiscreteUniformSampler. createZeroBoundedSampler(UniformRandomProvider rng, int upper)Create a new sampler for the range0inclusive toupperinclusive.private static UniformLongSamplerUniformLongSampler. createZeroBoundedSampler(UniformRandomProvider rng, long upper)Create a new sampler for the range0inclusive toupperinclusive.(package private) static NormalizedGaussianSamplerInternalUtils. newNormalizedGaussianSampler(NormalizedGaussianSampler sampler, UniformRandomProvider rng)Create a new instance of the given sampler usingSharedStateSampler.withUniformRandomProvider(UniformRandomProvider).static SharedStateContinuousSamplerAhrensDieterExponentialSampler. of(UniformRandomProvider rng, double mean)Create a new exponential distribution sampler.static SharedStateContinuousSamplerAhrensDieterMarsagliaTsangGammaSampler. of(UniformRandomProvider rng, double alpha, double theta)Creates a new gamma distribution sampler.static SharedStateDiscreteSamplerAliasMethodDiscreteSampler. of(UniformRandomProvider rng, double[] probabilities)Creates a sampler.static SharedStateDiscreteSamplerAliasMethodDiscreteSampler. of(UniformRandomProvider rng, double[] probabilities, int alpha)Creates a sampler.static <S extends NormalizedGaussianSampler & SharedStateContinuousSampler>
SBoxMullerNormalizedGaussianSampler. of(UniformRandomProvider rng)Create a new normalised Gaussian sampler.static SharedStateContinuousSamplerChengBetaSampler. of(UniformRandomProvider rng, double alpha, double beta)Creates a new beta distribution sampler.static SharedStateContinuousSamplerContinuousUniformSampler. of(UniformRandomProvider rng, double lo, double hi)Creates a new continuous uniform distribution sampler.static SharedStateContinuousSamplerContinuousUniformSampler. of(UniformRandomProvider rng, double lo, double hi, boolean excludeBounds)Creates a new continuous uniform distribution sampler.static DirichletSamplerDirichletSampler. of(UniformRandomProvider rng, double... alpha)Creates a new Dirichlet distribution sampler.static SharedStateDiscreteSamplerDiscreteUniformSampler. of(UniformRandomProvider rng, int lower, int upper)Creates a new discrete uniform distribution sampler.static FastLoadedDiceRollerDiscreteSamplerFastLoadedDiceRollerDiscreteSampler. of(UniformRandomProvider rng, double[] weights)Creates a sampler.static FastLoadedDiceRollerDiscreteSamplerFastLoadedDiceRollerDiscreteSampler. of(UniformRandomProvider rng, double[] weights, int alpha)Creates a sampler.static FastLoadedDiceRollerDiscreteSamplerFastLoadedDiceRollerDiscreteSampler. of(UniformRandomProvider rng, long[] frequencies)Creates a sampler.static SharedStateDiscreteSamplerGeometricSampler. of(UniformRandomProvider rng, double probabilityOfSuccess)Creates a new geometric distribution sampler.static SharedStateDiscreteSamplerGuideTableDiscreteSampler. of(UniformRandomProvider rng, double[] probabilities)Create a new sampler for an enumerated distribution using the givenprobabilities.static SharedStateDiscreteSamplerGuideTableDiscreteSampler. of(UniformRandomProvider rng, double[] probabilities, double alpha)Create a new sampler for an enumerated distribution using the givenprobabilities.static SharedStateContinuousSamplerInverseTransformContinuousSampler. of(UniformRandomProvider rng, ContinuousInverseCumulativeProbabilityFunction function)Create a new inverse-transform continuous sampler.static SharedStateDiscreteSamplerInverseTransformDiscreteSampler. of(UniformRandomProvider rng, DiscreteInverseCumulativeProbabilityFunction function)Create a new inverse-transform discrete sampler.static SharedStateContinuousSamplerInverseTransformParetoSampler. of(UniformRandomProvider rng, double scale, double shape)Creates a new Pareto distribution sampler.static SharedStateDiscreteSamplerKempSmallMeanPoissonSampler. of(UniformRandomProvider rng, double mean)Creates a new sampler for the Poisson distribution.static SharedStateDiscreteSamplerLargeMeanPoissonSampler. of(UniformRandomProvider rng, double mean)Creates a new Poisson distribution sampler.static LevySamplerLevySampler. of(UniformRandomProvider rng, double location, double scale)Create a new Lévy distribution sampler.static <S extends NormalizedGaussianSampler & SharedStateContinuousSampler>
SMarsagliaNormalizedGaussianSampler. of(UniformRandomProvider rng)Create a new normalised Gaussian sampler.static SharedStateDiscreteSamplerMarsagliaTsangWangDiscreteSampler.Binomial. of(UniformRandomProvider rng, int trials, double probabilityOfSuccess)Creates a sampler for the Binomial distribution.static SharedStateDiscreteSamplerMarsagliaTsangWangDiscreteSampler.Enumerated. of(UniformRandomProvider rng, double[] probabilities)Creates a sampler for an enumerated distribution ofnvalues each with an associated probability.static SharedStateDiscreteSamplerMarsagliaTsangWangDiscreteSampler.Poisson. of(UniformRandomProvider rng, double mean)Creates a sampler for the Poisson distribution.static SharedStateDiscreteSamplerPoissonSampler. of(UniformRandomProvider rng, double mean)Creates a new Poisson distribution sampler.static SharedStateDiscreteSamplerRejectionInversionZipfSampler. of(UniformRandomProvider rng, int numberOfElements, double exponent)Creates a new Zipf distribution sampler.static SharedStateDiscreteSamplerSmallMeanPoissonSampler. of(UniformRandomProvider rng, double mean)Creates a new sampler for the Poisson distribution.static StableSamplerStableSampler. of(UniformRandomProvider rng, double alpha, double beta)Creates a standardized sampler of a stable distribution with zero location and unit scale.static StableSamplerStableSampler. of(UniformRandomProvider rng, double alpha, double beta, double gamma, double delta)Creates a sampler of a stable distribution.static TSamplerTSampler. of(UniformRandomProvider rng, double degreesOfFreedom)Create a new t distribution sampler.static UniformLongSamplerUniformLongSampler. of(UniformRandomProvider rng, long lower, long upper)Creates a new discrete uniform distribution sampler.static <S extends NormalizedGaussianSampler & SharedStateContinuousSampler>
SZigguratNormalizedGaussianSampler. of(UniformRandomProvider rng)Create a new normalised Gaussian sampler.static ZigguratSampler.ExponentialZigguratSampler.Exponential. of(UniformRandomProvider rng)Create a new exponential sampler withmean = 1.static ZigguratSampler.ExponentialZigguratSampler.Exponential. of(UniformRandomProvider rng, double mean)Create a new exponential sampler with the specifiedmean.static ZigguratSampler.NormalizedGaussianZigguratSampler.NormalizedGaussian. of(UniformRandomProvider rng)Create a new normalised Gaussian sampler.static DirichletSamplerDirichletSampler. symmetric(UniformRandomProvider rng, int k, double alpha)Creates a new symmetric Dirichlet distribution sampler using the same concentration parameter for each category.SharedStateContinuousSamplerAhrensDieterExponentialSampler. 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.SharedStateContinuousSamplerAhrensDieterMarsagliaTsangGammaSampler.AhrensDieterGammaSampler. withUniformRandomProvider(UniformRandomProvider rng)SharedStateContinuousSamplerAhrensDieterMarsagliaTsangGammaSampler.MarsagliaTsangGammaSampler. withUniformRandomProvider(UniformRandomProvider rng)SharedStateContinuousSamplerAhrensDieterMarsagliaTsangGammaSampler. 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.SharedStateDiscreteSamplerAliasMethodDiscreteSampler.SmallTableAliasMethodDiscreteSampler. 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.SharedStateDiscreteSamplerAliasMethodDiscreteSampler. 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.SharedStateContinuousSamplerBoxMullerNormalizedGaussianSampler. 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.SharedStateContinuousSamplerChengBetaSampler.ChengBBBetaSampler. withUniformRandomProvider(UniformRandomProvider rng)SharedStateContinuousSamplerChengBetaSampler.ChengBCBetaSampler. withUniformRandomProvider(UniformRandomProvider rng)SharedStateContinuousSamplerChengBetaSampler. 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.SharedStateContinuousSamplerContinuousUniformSampler.OpenIntervalContinuousUniformSampler. withUniformRandomProvider(UniformRandomProvider rng)SharedStateContinuousSamplerContinuousUniformSampler. 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.DirichletSampler.GeneralDirichletSamplerDirichletSampler.GeneralDirichletSampler. withUniformRandomProvider(UniformRandomProvider rng)DirichletSampler.SymmetricDirichletSamplerDirichletSampler.SymmetricDirichletSampler. withUniformRandomProvider(UniformRandomProvider rng)abstract DirichletSamplerDirichletSampler. 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.SharedStateDiscreteSamplerDiscreteUniformSampler.FixedDiscreteUniformSampler. withUniformRandomProvider(UniformRandomProvider rng)SharedStateDiscreteSamplerDiscreteUniformSampler.LargeRangeDiscreteUniformSampler. withUniformRandomProvider(UniformRandomProvider rng)SharedStateDiscreteSamplerDiscreteUniformSampler.OffsetDiscreteUniformSampler. withUniformRandomProvider(UniformRandomProvider rng)SharedStateDiscreteSamplerDiscreteUniformSampler.PowerOf2RangeDiscreteUniformSampler. withUniformRandomProvider(UniformRandomProvider rng)SharedStateDiscreteSamplerDiscreteUniformSampler.SmallRangeDiscreteUniformSampler. withUniformRandomProvider(UniformRandomProvider rng)SharedStateDiscreteSamplerDiscreteUniformSampler. 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.FastLoadedDiceRollerDiscreteSamplerFastLoadedDiceRollerDiscreteSampler.FixedValueDiscreteSampler. withUniformRandomProvider(UniformRandomProvider rng)FastLoadedDiceRollerDiscreteSamplerFastLoadedDiceRollerDiscreteSampler.FLDRSampler. 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.abstract FastLoadedDiceRollerDiscreteSamplerFastLoadedDiceRollerDiscreteSampler. 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.SharedStateContinuousSamplerGaussianSampler. 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.SharedStateDiscreteSamplerGeometricSampler.GeometricExponentialSampler. withUniformRandomProvider(UniformRandomProvider rng)SharedStateDiscreteSamplerGeometricSampler.GeometricP1Sampler. withUniformRandomProvider(UniformRandomProvider rng)SharedStateDiscreteSamplerGuideTableDiscreteSampler. 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.SharedStateContinuousSamplerInverseTransformContinuousSampler. 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.SharedStateDiscreteSamplerInverseTransformDiscreteSampler. 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.SharedStateContinuousSamplerInverseTransformParetoSampler. 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.SharedStateDiscreteSamplerKempSmallMeanPoissonSampler. 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.SharedStateDiscreteSamplerLargeMeanPoissonSampler. 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.LevySamplerLevySampler. 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.SharedStateContinuousSamplerLogNormalSampler. 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.SharedStateContinuousSamplerMarsagliaNormalizedGaussianSampler. 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.SharedStateDiscreteSamplerMarsagliaTsangWangDiscreteSampler.Binomial.MarsagliaTsangWangFixedResultBinomialSampler. withUniformRandomProvider(UniformRandomProvider rng)SharedStateDiscreteSamplerMarsagliaTsangWangDiscreteSampler.Binomial.MarsagliaTsangWangInversionBinomialSampler. withUniformRandomProvider(UniformRandomProvider rng)SharedStateDiscreteSamplerMarsagliaTsangWangDiscreteSampler.MarsagliaTsangWangBase64Int16DiscreteSampler. withUniformRandomProvider(UniformRandomProvider rng)SharedStateDiscreteSamplerMarsagliaTsangWangDiscreteSampler.MarsagliaTsangWangBase64Int32DiscreteSampler. withUniformRandomProvider(UniformRandomProvider rng)SharedStateDiscreteSamplerMarsagliaTsangWangDiscreteSampler.MarsagliaTsangWangBase64Int8DiscreteSampler. withUniformRandomProvider(UniformRandomProvider rng)SharedStateDiscreteSamplerPoissonSampler. 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.SharedStateDiscreteSamplerRejectionInversionZipfSampler.RejectionInversionZipfSamplerImpl. withUniformRandomProvider(UniformRandomProvider rng)SharedStateDiscreteSamplerRejectionInversionZipfSampler. 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.SharedStateDiscreteSamplerSmallMeanPoissonSampler. 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.StableSampler.Alpha1CMSStableSamplerStableSampler.Alpha1CMSStableSampler. withUniformRandomProvider(UniformRandomProvider rng)StableSampler.Beta0CMSStableSamplerStableSampler.Beta0CMSStableSampler. withUniformRandomProvider(UniformRandomProvider rng)StableSampler.Beta0WeronStableSamplerStableSampler.Beta0WeronStableSampler. withUniformRandomProvider(UniformRandomProvider rng)StableSampler.CauchyStableSamplerStableSampler.CauchyStableSampler. withUniformRandomProvider(UniformRandomProvider rng)StableSampler.CMSStableSamplerStableSampler.CMSStableSampler. withUniformRandomProvider(UniformRandomProvider rng)StableSampler.GaussianStableSamplerStableSampler.GaussianStableSampler. withUniformRandomProvider(UniformRandomProvider rng)StableSampler.LevyStableSamplerStableSampler.LevyStableSampler. withUniformRandomProvider(UniformRandomProvider rng)StableSamplerStableSampler.TransformedStableSampler. withUniformRandomProvider(UniformRandomProvider rng)StableSampler.WeronStableSamplerStableSampler.WeronStableSampler. withUniformRandomProvider(UniformRandomProvider rng)abstract StableSamplerStableSampler. 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.TSampler.NormalTSamplerTSampler.NormalTSampler. 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.TSampler.StudentsTSamplerTSampler.StudentsTSampler. 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.abstract TSamplerTSampler. 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.UniformLongSamplerUniformLongSampler.FixedUniformLongSampler. withUniformRandomProvider(UniformRandomProvider rng)UniformLongSamplerUniformLongSampler.LargeRangeUniformLongSampler. withUniformRandomProvider(UniformRandomProvider rng)UniformLongSamplerUniformLongSampler.OffsetUniformLongSampler. withUniformRandomProvider(UniformRandomProvider rng)UniformLongSamplerUniformLongSampler.PowerOf2RangeUniformLongSampler. withUniformRandomProvider(UniformRandomProvider rng)UniformLongSamplerUniformLongSampler.SmallRangeUniformLongSampler. withUniformRandomProvider(UniformRandomProvider rng)abstract UniformLongSamplerUniformLongSampler. 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.SharedStateContinuousSamplerZigguratNormalizedGaussianSampler. 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.ZigguratSampler.Exponential.ExponentialMeanZigguratSampler.Exponential.ExponentialMean. withUniformRandomProvider(UniformRandomProvider rng)ZigguratSampler.ExponentialZigguratSampler.Exponential. 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.ZigguratSampler.NormalizedGaussianZigguratSampler.NormalizedGaussian. 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. -
Uses of UniformRandomProvider in org.apache.commons.rng.sampling.shape
Fields in org.apache.commons.rng.sampling.shape declared as UniformRandomProvider Modifier and Type Field Description private UniformRandomProviderBoxSampler. rngThe source of randomness.private UniformRandomProviderLineSampler. rngThe source of randomness.private UniformRandomProviderTetrahedronSampler. rngThe source of randomness.private UniformRandomProviderTriangleSampler. rngThe source of randomness.private UniformRandomProviderUnitBallSampler.UnitBallSampler1D. rngThe source of randomness.private UniformRandomProviderUnitBallSampler.UnitBallSampler2D. rngThe source of randomness.Methods in org.apache.commons.rng.sampling.shape with parameters of type UniformRandomProvider Modifier and Type Method Description static BoxSamplerBoxSampler. of(UniformRandomProvider rng, double[] a, double[] b)Create a box sampler with boundsaandb.static LineSamplerLineSampler. of(UniformRandomProvider rng, double[] a, double[] b)Create a line sampler with verticesaandb.static TetrahedronSamplerTetrahedronSampler. of(UniformRandomProvider rng, double[] a, double[] b, double[] c, double[] d)Create a tetrahedron sampler with verticesa,b,candd.static TriangleSamplerTriangleSampler. of(UniformRandomProvider rng, double[] a, double[] b, double[] c)Create a triangle sampler with verticesa,bandc.static UnitBallSamplerUnitBallSampler. of(UniformRandomProvider rng, int dimension)Create a unit n-ball sampler for the given dimension.BoxSamplerBoxSampler.BoxSampler2D. withUniformRandomProvider(UniformRandomProvider rng)BoxSamplerBoxSampler.BoxSampler3D. withUniformRandomProvider(UniformRandomProvider rng)BoxSamplerBoxSampler.BoxSamplerND. withUniformRandomProvider(UniformRandomProvider rng)abstract BoxSamplerBoxSampler. 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.LineSamplerLineSampler.LineSampler1D. withUniformRandomProvider(UniformRandomProvider rng)LineSamplerLineSampler.LineSampler2D. withUniformRandomProvider(UniformRandomProvider rng)LineSamplerLineSampler.LineSampler3D. withUniformRandomProvider(UniformRandomProvider rng)LineSamplerLineSampler.LineSamplerND. withUniformRandomProvider(UniformRandomProvider rng)abstract LineSamplerLineSampler. 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.TetrahedronSamplerTetrahedronSampler. 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.TriangleSamplerTriangleSampler.TriangleSampler2D. withUniformRandomProvider(UniformRandomProvider rng)TriangleSamplerTriangleSampler.TriangleSampler3D. withUniformRandomProvider(UniformRandomProvider rng)TriangleSamplerTriangleSampler.TriangleSamplerND. withUniformRandomProvider(UniformRandomProvider rng)abstract TriangleSamplerTriangleSampler. 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.UnitBallSamplerUnitBallSampler.UnitBallSampler1D. withUniformRandomProvider(UniformRandomProvider rng)UnitBallSamplerUnitBallSampler.UnitBallSampler2D. withUniformRandomProvider(UniformRandomProvider rng)UnitBallSamplerUnitBallSampler.UnitBallSampler3D. withUniformRandomProvider(UniformRandomProvider rng)UnitBallSamplerUnitBallSampler.UnitBallSamplerND. withUniformRandomProvider(UniformRandomProvider rng)abstract UnitBallSamplerUnitBallSampler. 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. -
Uses of UniformRandomProvider in org.apache.commons.rng.simple
Classes in org.apache.commons.rng.simple that implement UniformRandomProvider Modifier and Type Class Description classJDKRandomWrapperWraps aRandominstance to implementUniformRandomProvider.Fields in org.apache.commons.rng.simple with type parameters of type UniformRandomProvider Modifier and Type Field Description private static java.util.Map<RandomSource,java.lang.ThreadLocal<UniformRandomProvider>>ThreadLocalRandomSource. SOURCESA map containing theThreadLocalinstance for eachRandomSource.Methods in org.apache.commons.rng.simple that return UniformRandomProvider Modifier and Type Method Description static UniformRandomProviderThreadLocalRandomSource. current(RandomSource source)Returns the current thread's copy of the givensource.protected UniformRandomProviderThreadLocalRandomSource.ThreadLocalRng. initialValue()static UniformRandomProviderRandomSource. unrestorable(UniformRandomProvider delegate)Wraps the givendelegategenerator in a new instance that only provides access to theUniformRandomProvidermethods.Methods in org.apache.commons.rng.simple with parameters of type UniformRandomProvider Modifier and Type Method Description byte[]RandomSource. createSeed(UniformRandomProvider rng)Creates a seed suitable for the implementing class represented by this random source using the supplied source of randomness.static UniformRandomProviderRandomSource. unrestorable(UniformRandomProvider delegate)Wraps the givendelegategenerator in a new instance that only provides access to theUniformRandomProvidermethods. -
Uses of UniformRandomProvider in org.apache.commons.rng.simple.internal
Fields in org.apache.commons.rng.simple.internal declared as UniformRandomProvider Modifier and Type Field Description private UniformRandomProviderSeedUtils.UnsignedByteProvider. rngSource of randomness.private static UniformRandomProviderSeedFactory. SEED_GENERATORGenerator with a long period.Fields in org.apache.commons.rng.simple.internal with type parameters of type UniformRandomProvider Modifier and Type Field Description private java.lang.Class<? extends UniformRandomProvider>ProviderBuilder.RandomSourceInternal. rngSource type.Methods in org.apache.commons.rng.simple.internal with parameters of type UniformRandomProvider Modifier and Type Method Description (package private) static byte[]SeedFactory. createByteArray(UniformRandomProvider source, int n, int from, int to)Creates an array ofbytenumbers for use as a seed using the supplied source of randomness.protected byte[]ProviderBuilder.RandomSourceInternal. createByteArraySeed(UniformRandomProvider source)Creates abyte[]seed using the provided source of randomness.(package private) static intSeedUtils. createIntHexPermutation(UniformRandomProvider rng)Creates anintcontaining a permutation of 8 hex digits chosen from 16.(package private) static longSeedUtils. createLongHexPermutation(UniformRandomProvider rng)Creates alongcontaining a permutation of 8 hex digits chosen from 16 in the upper and lower 32-bits.byte[]ProviderBuilder.RandomSourceInternal. createSeedBytes(UniformRandomProvider source)Creates a seed suitable for the implementing class represented by this random source using the supplied source of randomness.(package private) static voidSeedFactory. ensureNonZero(byte[] seed, int from, int to, UniformRandomProvider source)Ensure the seed is not all-zero within the specified sub-range.Constructors in org.apache.commons.rng.simple.internal with parameters of type UniformRandomProvider Constructor Description UnsignedByteProvider(UniformRandomProvider rng)Constructor parameters in org.apache.commons.rng.simple.internal with type arguments of type UniformRandomProvider Constructor Description RandomSourceInternal(java.lang.Class<? extends UniformRandomProvider> rng, int nativeSeedSize, int notAllZeroFrom, int notAllZeroTo, NativeSeedType nativeSeedType, java.lang.Class<?>... args)Create a new instance.RandomSourceInternal(java.lang.Class<? extends UniformRandomProvider> rng, int nativeSeedSize, NativeSeedType nativeSeedType, java.lang.Class<?>... args)Create a new instance.
-