Java org.apache.commons.math3.distribution UniformRealDistribution fields, constructors, methods, implement or subclass

Example usage for Java org.apache.commons.math3.distribution UniformRealDistribution fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for org.apache.commons.math3.distribution UniformRealDistribution.

The text is from its open source code.

Field

doubleDEFAULT_INVERSE_ABSOLUTE_ACCURACY
Default inverse cumulative probability accuracy.

Constructor

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.

Method

doublegetNumericalMean()
For lower bound lower and upper bound upper , the mean is 0.5 * (lower + upper) .
voidreseedRandomGenerator(long seed)
doublesample()
double[]sample(int sampleSize)
The default implementation generates the sample by calling #sample() in a loop.