Uses of Interface
org.uncommons.maths.number.NumberGenerator
-
Packages that use NumberGenerator Package Description org.uncommons.maths.number Custom numeric data types and classes for working with java.lang.Number and its sub-classes.org.uncommons.maths.random This package provides deterministic, repeatable, pseudo-random number generators, a set of strategies for seeding them, and classes for generating values from different probability distributions. -
-
Uses of NumberGenerator in org.uncommons.maths.number
Classes in org.uncommons.maths.number that implement NumberGenerator Modifier and Type Class Description class
AdjustableNumberGenerator<T extends java.lang.Number>
Implementation ofNumberGenerator
that works similarly toConstantGenerator
but allows the returned value to be changed after instantiation.class
ConstantGenerator<T extends java.lang.Number>
Convenience implementation ofNumberGenerator
that always returns the same value. -
Uses of NumberGenerator in org.uncommons.maths.random
Classes in org.uncommons.maths.random that implement NumberGenerator Modifier and Type Class Description class
BinomialGenerator
Discrete random sequence that follows a binomial distribution.class
ContinuousUniformGenerator
Continuous, uniformly distributed random sequence.class
DiscreteUniformGenerator
Discrete, uniformly distributed random sequence.class
ExponentialGenerator
Continuous random sequence that follows an exponential distribution.class
GaussianGenerator
Normally distributed random sequence.class
PoissonGenerator
Discrete random sequence that follows a Poisson distribution.Fields in org.uncommons.maths.random declared as NumberGenerator Modifier and Type Field Description private NumberGenerator<java.lang.Double>
GaussianGenerator. mean
private NumberGenerator<java.lang.Double>
PoissonGenerator. mean
private NumberGenerator<java.lang.Integer>
BinomialGenerator. n
private NumberGenerator<java.lang.Double>
BinomialGenerator. p
private NumberGenerator<java.lang.Double>
ExponentialGenerator. rate
private NumberGenerator<java.lang.Double>
GaussianGenerator. standardDeviation
Constructors in org.uncommons.maths.random with parameters of type NumberGenerator Constructor Description BinomialGenerator(NumberGenerator<java.lang.Integer> n, NumberGenerator<java.lang.Double> p, java.util.Random rng)
Creates a generator of binomially-distributed values.ExponentialGenerator(NumberGenerator<java.lang.Double> rate, java.util.Random rng)
Creates a generator of exponentially-distributed values from a distribution with a rate controlled by the specified generator parameter.GaussianGenerator(NumberGenerator<java.lang.Double> mean, NumberGenerator<java.lang.Double> standardDeviation, java.util.Random rng)
Creates a generator of normally-distributed values.PoissonGenerator(NumberGenerator<java.lang.Double> mean, java.util.Random rng)
Creates a generator of Poisson-distributed values.
-