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

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

Introduction

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

The text is from its open source code.

Subclass

org.apache.commons.math3.distribution.NormalDistribution has subclasses.
Click this link to see all its subclasses.

Field

doubleDEFAULT_INVERSE_ABSOLUTE_ACCURACY
Default inverse cumulative probability accuracy.

Constructor

NormalDistribution(double mean, double sd)
Create a normal distribution using the given mean and standard deviation.
NormalDistribution(double mean, double sd, double inverseCumAccuracy)
Create a normal distribution using the given mean, standard deviation and inverse cumulative distribution accuracy.
NormalDistribution(RandomGenerator rng, double mean, double sd, double inverseCumAccuracy)
Creates a normal distribution.
NormalDistribution()
Create a normal distribution with mean equal to zero and standard deviation equal to one.

Method

doublecumulativeProbability(double x)
If x is more than 40 standard deviations from the mean, 0 or 1 is returned, as in these cases the actual value is within Double.MIN_VALUE of 0 or 1.
doubledensity(double x)
doublegetMean()
Access the mean.
doublegetNumericalMean()
For mean parameter mu , the mean is mu .
doublegetStandardDeviation()
Access the standard deviation.
doubleinverseCumulativeProbability(final double p)
The default implementation returns
  • #getSupportLowerBound() for p = 0 ,
  • #getSupportUpperBound() for p = 1 .
doubleprobability(double x0, double x1)
doubleprobability(double x)
voidreseedRandomGenerator(long seed)
doublesample()
double[]sample(int sampleSize)
The default implementation generates the sample by calling #sample() in a loop.