Example usage for Java org.apache.commons.math3.random EmpiricalDistribution fields, constructors, methods, implement or subclass
The text is from its open source code.
int | DEFAULT_BIN_COUNT Default bin count |
EmpiricalDistribution(int binCount, RandomGenerator generator) Creates a new EmpiricalDistribution with the specified bin count using the provided RandomGenerator as the source of random data. | |
EmpiricalDistribution(int binCount, RandomDataImpl randomData) Creates a new EmpiricalDistribution with the specified bin count using the provided RandomDataImpl instance as the source of random data. | |
EmpiricalDistribution(int binCount, RandomDataGenerator randomData) Private constructor to allow lazy initialisation of the RNG contained in the #randomData instance variable. | |
EmpiricalDistribution(int binCount) Creates a new EmpiricalDistribution with the specified bin count. | |
EmpiricalDistribution(RandomGenerator generator) Creates a new EmpiricalDistribution with default bin count using the provided RandomGenerator as the source of random data. | |
EmpiricalDistribution(RandomDataImpl randomData) Creates a new EmpiricalDistribution with default bin count using the provided RandomDataImpl as the source of random data. | |
EmpiricalDistribution() Creates a new EmpiricalDistribution with the default bin count. |
double | cumulativeProbability(double x) Algorithm description:
|
List | getBinStats() Returns a List of SummaryStatistics instances containing statistics describing the values in each of the bins. |
double | getNumericalMean() |
double[] | getUpperBounds() Returns a fresh copy of the array of upper bounds for the bins. |
void | load(double[] in) Computes the empirical distribution from the provided array of numbers. |
void | load(URL url) Computes the empirical distribution using data read from a URL. |
void | load(File file) Computes the empirical distribution from the input file. |
double | probability(double x0, double x1) For a random variable X whose values are distributed according to this distribution, this method returns P(x0 < X <= x1) . |