Package | Description |
---|---|
org.apache.commons.math3.distribution |
Implementations of common discrete and continuous distributions.
|
org.apache.commons.math3.random |
Random number and random data generators.
|
org.apache.commons.math3.util |
Convenience routines and common data structures used throughout the commons-math library.
|
Constructor and Description |
---|
EnumeratedDistribution(List<Pair<T,Double>> pmf)
Create an enumerated distribution using the given probability mass function
enumeration.
|
EnumeratedDistribution(RandomGenerator rng,
List<Pair<T,Double>> pmf)
Create an enumerated distribution using the given random number generator
and probability mass function enumeration.
|
EnumeratedIntegerDistribution(int[] singletons,
double[] probabilities)
Create a discrete distribution using the given probability mass function
definition.
|
EnumeratedIntegerDistribution(RandomGenerator rng,
int[] singletons,
double[] probabilities)
Create a discrete distribution using the given random number generator
and probability mass function definition.
|
EnumeratedRealDistribution(double[] singletons,
double[] probabilities)
Create a discrete real-valued distribution using the given probability mass function
enumeration.
|
EnumeratedRealDistribution(RandomGenerator rng,
double[] singletons,
double[] probabilities)
Create a discrete real-valued distribution using the given random number generator
and probability mass function enumeration.
|
Modifier and Type | Method and Description |
---|---|
double |
RandomDataGenerator.nextUniform(double lower,
double upper)
Generates a uniformly distributed random value from the open interval
(lower, upper) (i.e., endpoints excluded). |
double |
RandomData.nextUniform(double lower,
double upper)
Deprecated.
Generates a uniformly distributed random value from the open interval
(lower, upper) (i.e., endpoints excluded). |
double |
RandomDataImpl.nextUniform(double lower,
double upper)
Deprecated.
Generates a uniformly distributed random value from the open interval
(lower, upper) (i.e., endpoints excluded). |
double |
RandomDataGenerator.nextUniform(double lower,
double upper,
boolean lowerInclusive)
Generates a uniformly distributed random value from the interval
(lower, upper) or the interval [lower, upper) . |
double |
RandomData.nextUniform(double lower,
double upper,
boolean lowerInclusive)
Deprecated.
Generates a uniformly distributed random value from the interval
(lower, upper) or the interval [lower, upper) . |
double |
RandomDataImpl.nextUniform(double lower,
double upper,
boolean lowerInclusive)
Deprecated.
Generates a uniformly distributed random value from the interval
(lower, upper) or the interval [lower, upper) . |
Modifier and Type | Method and Description |
---|---|
static void |
MathArrays.checkNotNaN(double[] in)
Check that no entry of the input array is
NaN . |
Copyright © 2003–2016 The Apache Software Foundation. All rights reserved.