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.
|
Modifier and Type | Class and Description |
---|---|
class |
AdjustableNumberGenerator<T extends Number>
Implementation of
NumberGenerator that works similarly to
ConstantGenerator but allows the returned
value to be changed after instantiation. |
class |
ConstantGenerator<T extends Number>
Convenience implementation of
NumberGenerator that always
returns the same value. |
Modifier and Type | Class and 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.
|
Constructor and Description |
---|
BinomialGenerator(NumberGenerator<Integer> n,
NumberGenerator<Double> p,
Random rng)
Creates a generator of binomially-distributed values.
|
BinomialGenerator(NumberGenerator<Integer> n,
NumberGenerator<Double> p,
Random rng)
Creates a generator of binomially-distributed values.
|
ExponentialGenerator(NumberGenerator<Double> rate,
Random rng)
Creates a generator of exponentially-distributed values from a distribution
with a rate controlled by the specified generator parameter.
|
GaussianGenerator(NumberGenerator<Double> mean,
NumberGenerator<Double> standardDeviation,
Random rng)
Creates a generator of normally-distributed values.
|
GaussianGenerator(NumberGenerator<Double> mean,
NumberGenerator<Double> standardDeviation,
Random rng)
Creates a generator of normally-distributed values.
|
PoissonGenerator(NumberGenerator<Double> mean,
Random rng)
Creates a generator of Poisson-distributed values.
|
Copyright © 2015. All rights reserved.