Uses of Interface
org.apache.commons.math3.random.RandomGenerator
Packages that use RandomGenerator
Package
Description
Implementations of common discrete and continuous distributions.
This package provides Genetic Algorithms components and implementations.
Clustering algorithms.
Neural networks.
This package provides optimization algorithms that do not require derivatives.
One-dimensional optimization algorithms.
This package provides optimization algorithms that don't require derivatives.
Univariate real functions minimum finding algorithms.
Random number and random data generators.
Classes providing hypothesis testing.
Classes providing rank transformations.
Convenience routines and common data structures used throughout the commons-math library.
-
Uses of RandomGenerator in org.apache.commons.math3.distribution
Fields in org.apache.commons.math3.distribution declared as RandomGeneratorModifier and TypeFieldDescriptionprotected final RandomGenerator
AbstractIntegerDistribution.random
RNG instance used to generate samples from the distribution.protected final RandomGenerator
AbstractMultivariateRealDistribution.random
RNG instance used to generate samples from the distribution.protected final RandomGenerator
AbstractRealDistribution.random
RNG instance used to generate samples from the distribution.protected final RandomGenerator
EnumeratedDistribution.random
RNG instance used to generate samples from the distribution.Constructors in org.apache.commons.math3.distribution with parameters of type RandomGeneratorModifierConstructorDescriptionprotected
protected
AbstractMultivariateRealDistribution
(RandomGenerator rng, int n) protected
BetaDistribution
(RandomGenerator rng, double alpha, double beta) Creates a β distribution.BetaDistribution
(RandomGenerator rng, double alpha, double beta, double inverseCumAccuracy) Creates a β distribution.BinomialDistribution
(RandomGenerator rng, int trials, double p) Creates a binomial distribution.CauchyDistribution
(RandomGenerator rng, double median, double scale) Creates a Cauchy distribution.CauchyDistribution
(RandomGenerator rng, double median, double scale, double inverseCumAccuracy) Creates a Cauchy distribution.ChiSquaredDistribution
(RandomGenerator rng, double degreesOfFreedom) Create a Chi-Squared distribution with the given degrees of freedom.ChiSquaredDistribution
(RandomGenerator rng, double degreesOfFreedom, double inverseCumAccuracy) Create a Chi-Squared distribution with the given degrees of freedom and inverse cumulative probability accuracy.EnumeratedDistribution
(RandomGenerator rng, List<Pair<T, Double>> pmf) Create an enumerated distribution using the given random number generator and probability mass function enumeration.EnumeratedIntegerDistribution
(RandomGenerator rng, int[] data) Create a discrete integer-valued distribution from the input data.EnumeratedIntegerDistribution
(RandomGenerator rng, int[] singletons, double[] probabilities) Create a discrete distribution using the given random number generator and probability mass function definition.EnumeratedRealDistribution
(RandomGenerator rng, double[] data) Create a discrete real-valued distribution from the input data.EnumeratedRealDistribution
(RandomGenerator rng, double[] singletons, double[] probabilities) Create a discrete real-valued distribution using the given random number generator and probability mass function enumeration.ExponentialDistribution
(RandomGenerator rng, double mean) Creates an exponential distribution.ExponentialDistribution
(RandomGenerator rng, double mean, double inverseCumAccuracy) Creates an exponential distribution.FDistribution
(RandomGenerator rng, double numeratorDegreesOfFreedom, double denominatorDegreesOfFreedom) Creates an F distribution.FDistribution
(RandomGenerator rng, double numeratorDegreesOfFreedom, double denominatorDegreesOfFreedom, double inverseCumAccuracy) Creates an F distribution.GammaDistribution
(RandomGenerator rng, double shape, double scale) Creates a Gamma distribution.GammaDistribution
(RandomGenerator rng, double shape, double scale, double inverseCumAccuracy) Creates a Gamma distribution.GeometricDistribution
(RandomGenerator rng, double p) Creates a geometric distribution.GumbelDistribution
(RandomGenerator rng, double mu, double beta) Build a new instance.HypergeometricDistribution
(RandomGenerator rng, int populationSize, int numberOfSuccesses, int sampleSize) Creates a new hypergeometric distribution.LaplaceDistribution
(RandomGenerator rng, double mu, double beta) Build a new instance.LevyDistribution
(RandomGenerator rng, double mu, double c) Creates a LevyDistribution.LogisticDistribution
(RandomGenerator rng, double mu, double s) Build a new instance.LogNormalDistribution
(RandomGenerator rng, double scale, double shape) Creates a log-normal distribution.LogNormalDistribution
(RandomGenerator rng, double scale, double shape, double inverseCumAccuracy) Creates a log-normal distribution.MixtureMultivariateNormalDistribution
(RandomGenerator rng, List<Pair<Double, MultivariateNormalDistribution>> components) Creates a mixture model from a list of distributions and their associated weights.MixtureMultivariateRealDistribution
(RandomGenerator rng, List<Pair<Double, T>> components) Creates a mixture model from a list of distributions and their associated weights.MultivariateNormalDistribution
(RandomGenerator rng, double[] means, double[][] covariances) Creates a multivariate normal distribution with the given mean vector and covariance matrix.NakagamiDistribution
(RandomGenerator rng, double mu, double omega, double inverseAbsoluteAccuracy) Build a new instance.NormalDistribution
(RandomGenerator rng, double mean, double sd) Creates a normal distribution.NormalDistribution
(RandomGenerator rng, double mean, double sd, double inverseCumAccuracy) Creates a normal distribution.ParetoDistribution
(RandomGenerator rng, double scale, double shape) Creates a Pareto distribution.ParetoDistribution
(RandomGenerator rng, double scale, double shape, double inverseCumAccuracy) Creates a Pareto distribution.PascalDistribution
(RandomGenerator rng, int r, double p) Create a Pascal distribution with the given number of successes and probability of success.PoissonDistribution
(RandomGenerator rng, double p, double epsilon, int maxIterations) Creates a new Poisson distribution with specified mean, convergence criterion and maximum number of iterations.TDistribution
(RandomGenerator rng, double degreesOfFreedom) Creates a t distribution.TDistribution
(RandomGenerator rng, double degreesOfFreedom, double inverseCumAccuracy) Creates a t distribution.TriangularDistribution
(RandomGenerator rng, double a, double c, double b) Creates a triangular distribution.UniformIntegerDistribution
(RandomGenerator rng, int lower, int upper) Creates a new uniform integer distribution using the given lower and upper bounds (both inclusive).UniformRealDistribution
(RandomGenerator rng, double lower, double upper) Creates a uniform distribution.UniformRealDistribution
(RandomGenerator rng, double lower, double upper, double inverseCumAccuracy) Deprecated.WeibullDistribution
(RandomGenerator rng, double alpha, double beta) Creates a Weibull distribution.WeibullDistribution
(RandomGenerator rng, double alpha, double beta, double inverseCumAccuracy) Creates a Weibull distribution.ZipfDistribution
(RandomGenerator rng, int numberOfElements, double exponent) Creates a Zipf distribution. -
Uses of RandomGenerator in org.apache.commons.math3.genetics
Methods in org.apache.commons.math3.genetics that return RandomGeneratorModifier and TypeMethodDescriptionstatic RandomGenerator
GeneticAlgorithm.getRandomGenerator()
Returns the (static) random generator.Methods in org.apache.commons.math3.genetics with parameters of type RandomGeneratorModifier and TypeMethodDescriptionstatic void
GeneticAlgorithm.setRandomGenerator
(RandomGenerator random) Set the (static) random generator. -
Uses of RandomGenerator in org.apache.commons.math3.ml.clustering
Methods in org.apache.commons.math3.ml.clustering that return RandomGeneratorModifier and TypeMethodDescriptionFuzzyKMeansClusterer.getRandomGenerator()
Returns the random generator this instance will use.KMeansPlusPlusClusterer.getRandomGenerator()
Returns the random generator this instance will use.Constructors in org.apache.commons.math3.ml.clustering with parameters of type RandomGeneratorModifierConstructorDescriptionFuzzyKMeansClusterer
(int k, double fuzziness, int maxIterations, DistanceMeasure measure, double epsilon, RandomGenerator random) Creates a new instance of a FuzzyKMeansClusterer.KMeansPlusPlusClusterer
(int k, int maxIterations, DistanceMeasure measure, RandomGenerator random) Build a clusterer.KMeansPlusPlusClusterer
(int k, int maxIterations, DistanceMeasure measure, RandomGenerator random, KMeansPlusPlusClusterer.EmptyClusterStrategy emptyStrategy) Build a clusterer. -
Uses of RandomGenerator in org.apache.commons.math3.ml.neuralnet
Methods in org.apache.commons.math3.ml.neuralnet with parameters of type RandomGeneratorModifier and TypeMethodDescriptionstatic FeatureInitializer
FeatureInitializerFactory.uniform
(RandomGenerator rng, double min, double max) Uniform sampling of the given range. -
Uses of RandomGenerator in org.apache.commons.math3.optim.nonlinear.scalar.noderiv
Constructors in org.apache.commons.math3.optim.nonlinear.scalar.noderiv with parameters of type RandomGeneratorModifierConstructorDescriptionCMAESOptimizer
(int maxIterations, double stopFitness, boolean isActiveCMA, int diagonalOnly, int checkFeasableCount, RandomGenerator random, boolean generateStatistics, ConvergenceChecker<PointValuePair> checker) -
Uses of RandomGenerator in org.apache.commons.math3.optim.univariate
Constructors in org.apache.commons.math3.optim.univariate with parameters of type RandomGeneratorModifierConstructorDescriptionMultiStartUnivariateOptimizer
(UnivariateOptimizer optimizer, int starts, RandomGenerator generator) Create a multi-start optimizer from a single-start optimizer. -
Uses of RandomGenerator in org.apache.commons.math3.optimization.direct
Fields in org.apache.commons.math3.optimization.direct declared as RandomGeneratorModifier and TypeFieldDescriptionstatic final RandomGenerator
CMAESOptimizer.DEFAULT_RANDOMGENERATOR
Deprecated.Default value forCMAESOptimizer.random
.Constructors in org.apache.commons.math3.optimization.direct with parameters of type RandomGeneratorModifierConstructorDescriptionCMAESOptimizer
(int lambda, double[] inputSigma, int maxIterations, double stopFitness, boolean isActiveCMA, int diagonalOnly, int checkFeasableCount, RandomGenerator random, boolean generateStatistics) Deprecated.CMAESOptimizer
(int lambda, double[] inputSigma, int maxIterations, double stopFitness, boolean isActiveCMA, int diagonalOnly, int checkFeasableCount, RandomGenerator random, boolean generateStatistics, ConvergenceChecker<PointValuePair> checker) Deprecated.CMAESOptimizer
(int maxIterations, double stopFitness, boolean isActiveCMA, int diagonalOnly, int checkFeasableCount, RandomGenerator random, boolean generateStatistics, ConvergenceChecker<PointValuePair> checker) Deprecated. -
Uses of RandomGenerator in org.apache.commons.math3.optimization.univariate
Constructors in org.apache.commons.math3.optimization.univariate with parameters of type RandomGeneratorModifierConstructorDescriptionUnivariateMultiStartOptimizer
(BaseUnivariateOptimizer<FUNC> optimizer, int starts, RandomGenerator generator) Deprecated.Create a multi-start optimizer from a single-start optimizer. -
Uses of RandomGenerator in org.apache.commons.math3.random
Classes in org.apache.commons.math3.random that implement RandomGeneratorModifier and TypeClassDescriptionclass
Abstract class implementing theRandomGenerator
interface.class
This abstract class implements the WELL class of pseudo-random number generator from François Panneton, Pierre L'Ecuyer and Makoto Matsumoto.class
Base class for random number generators that generates bits streams.class
ISAAC: a fast cryptographic pseudo-random number generator
ISAAC (Indirection, Shift, Accumulate, Add, and Count) generates 32-bit random numbers.class
Extension ofjava.util.Random
to implementRandomGenerator
.class
This class implements a powerful pseudo-random number generator developed by Makoto Matsumoto and Takuji Nishimura during 1996-1997.class
Extension ofjava.util.Random
wrapping aRandomGenerator
.class
AnyRandomGenerator
implementation can be thread-safe if it is used through an instance of this class.class
This class implements the WELL1024a pseudo-random number generator from François Panneton, Pierre L'Ecuyer and Makoto Matsumoto.class
This class implements the WELL19937a pseudo-random number generator from François Panneton, Pierre L'Ecuyer and Makoto Matsumoto.class
This class implements the WELL19937c pseudo-random number generator from François Panneton, Pierre L'Ecuyer and Makoto Matsumoto.class
This class implements the WELL44497a pseudo-random number generator from François Panneton, Pierre L'Ecuyer and Makoto Matsumoto.class
This class implements the WELL44497b pseudo-random number generator from François Panneton, Pierre L'Ecuyer and Makoto Matsumoto.class
This class implements the WELL512a pseudo-random number generator from François Panneton, Pierre L'Ecuyer and Makoto Matsumoto.Methods in org.apache.commons.math3.random that return RandomGeneratorModifier and TypeMethodDescriptionstatic RandomGenerator
RandomGeneratorFactory.createRandomGenerator
(Random rng) Creates aRandomDataGenerator
instance that wraps aRandom
instance.RandomDataGenerator.getRandomGenerator()
Returns the RandomGenerator used to generate non-secure random data.Methods in org.apache.commons.math3.random with parameters of type RandomGeneratorModifier and TypeMethodDescriptionstatic Random
RandomAdaptor.createAdaptor
(RandomGenerator randomGenerator) Factory method to create aRandom
using the suppliedRandomGenerator
.Constructors in org.apache.commons.math3.random with parameters of type RandomGeneratorModifierConstructorDescriptionEmpiricalDistribution
(int binCount, RandomGenerator generator) Creates a new EmpiricalDistribution with the specified bin count using the providedRandomGenerator
as the source of random data.EmpiricalDistribution
(RandomGenerator generator) Creates a new EmpiricalDistribution with default bin count using the providedRandomGenerator
as the source of random data.GaussianRandomGenerator
(RandomGenerator generator) Create a new generator.RandomAdaptor
(RandomGenerator randomGenerator) Construct a RandomAdaptor wrapping the supplied RandomGenerator.Construct a RandomDataGenerator using the suppliedRandomGenerator
as the source of (non-secure) random data.Deprecated.Construct a RandomDataImpl using the suppliedRandomGenerator
as the source of (non-secure) random data.StableRandomGenerator
(RandomGenerator generator, double alpha, double beta) Create a new generator.Creates a synchronized wrapper for the givenRandomGenerator
instance.UniformRandomGenerator
(RandomGenerator generator) Create a new generator.UnitSphereRandomVectorGenerator
(int dimension, RandomGenerator rand) ValueServer
(RandomGenerator generator) Construct a ValueServer instance using a RandomGenerator as its source of random data. -
Uses of RandomGenerator in org.apache.commons.math3.stat.inference
Constructors in org.apache.commons.math3.stat.inference with parameters of type RandomGenerator -
Uses of RandomGenerator in org.apache.commons.math3.stat.ranking
Constructors in org.apache.commons.math3.stat.ranking with parameters of type RandomGeneratorModifierConstructorDescriptionNaturalRanking
(RandomGenerator randomGenerator) Create a NaturalRanking with TiesStrategy.RANDOM and the given RandomGenerator as the source of random data.NaturalRanking
(NaNStrategy nanStrategy, RandomGenerator randomGenerator) Create a NaturalRanking with the given NaNStrategy, TiesStrategy.RANDOM and the given source of random data. -
Uses of RandomGenerator in org.apache.commons.math3.util
Methods in org.apache.commons.math3.util with parameters of type RandomGeneratorModifier and TypeMethodDescriptionstatic void
MathArrays.shuffle
(int[] list, int start, MathArrays.Position pos, RandomGenerator rng) Shuffle the entries of the given array, using the Fisher–Yates algorithm.static void
MathArrays.shuffle
(int[] list, RandomGenerator rng) Shuffle the entries of the given array.Constructors in org.apache.commons.math3.util with parameters of type RandomGenerator
UniformRealDistribution(RandomGenerator, double, double)
instead.