Example usage for Java org.apache.commons.math3.distribution UniformRealDistribution fields, constructors, methods, implement or subclass
The text is from its open source code.
double | DEFAULT_INVERSE_ABSOLUTE_ACCURACY Default inverse cumulative probability accuracy. |
UniformRealDistribution(double lower, double upper) Create a uniform real distribution using the given lower and upper bounds. | |
UniformRealDistribution() Create a standard uniform real distribution with lower bound (inclusive) equal to zero and upper bound (exclusive) equal to one. | |
UniformRealDistribution(double lower, double upper, double inverseCumAccuracy) Create a uniform distribution. | |
UniformRealDistribution(RandomGenerator rng, double lower, double upper, double inverseCumAccuracy) Creates a uniform distribution. |
double | getNumericalMean() For lower bound lower and upper bound upper , the mean is 0.5 * (lower + upper) . |
void | reseedRandomGenerator(long seed) |
double | sample() |
double[] | sample(int sampleSize) The default implementation generates the sample by calling #sample() in a loop. |