public class NormalDistribution
extends java.lang.Object
Constructor and Description |
---|
NormalDistribution()
Default builder
|
Modifier and Type | Method and Description |
---|---|
double |
getCumulatedProbability(double x)
Computes cumulated distribution frequency for a given value
|
double |
getMean()
Get the mean of the distribution
|
double |
getProbability(double x)
Computes punctual probability for a given point
|
double |
getSigma()
Get the sigma value of the distribution
|
double |
getTipifiedProbability(double z,
boolean upper)
Computes cumulative N(0,1) distribution.
|
double |
inverseNormalDistribution(double p)
Computes inverse cumulative distribution.
|
void |
setMean(double value)
Set the mean of the distribution
|
void |
setSigma(double value)
Set the sigma value of the distribution
|
public void setMean(double value)
value
- Mean valuepublic void setSigma(double value)
value
- Sigma valuepublic double getMean()
public double getSigma()
public double getProbability(double x)
x
- Point selectedpublic double getCumulatedProbability(double x)
x
- Z valuepublic double getTipifiedProbability(double z, boolean upper)
z
- x valueupper
- A boolean value, if true the integral is evaluated from z to infinity, from minus infinity to z otherwisepublic double inverseNormalDistribution(double p)
p
- CDF probability