public class NormalDistribution
extends java.lang.Object
| Constructor and Description |
|---|
NormalDistribution(double mu,
double roh)
Normal Distribution
|
| Modifier and Type | Method and Description |
|---|---|
double |
pdf(double x)
This is the density function.
|
double |
rpdf(double y)
The reverse function of the density function (pdf)
|
double |
sample()
A numerical approximation is used
|
public NormalDistribution(double mu,
double roh)
mu - is the meanroh - is the variancepublic double pdf(double x)
x - is the event .public double rpdf(double y)
y - is a double, which is the density (probability)public double sample()