|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectJSci.maths.statistics.ProbabilityDistribution
JSci.maths.statistics.NormalDistribution
The NormalDistribution class provides an object for encapsulating normal distributions.
Field Summary |
Fields inherited from interface JSci.maths.NumericalConstants |
GAMMA, GOLDEN_RATIO, LOG10, SQRT2, SQRT2PI, TWO_PI |
Constructor Summary | |
NormalDistribution()
Constructs the standard normal distribution (zero mean and unity variance). |
|
NormalDistribution(double[] array)
Constructs a normal distribution from a data set. |
|
NormalDistribution(double mu,
double var)
Constructs a normal distribution. |
Method Summary | |
double |
cumulative(double X)
Cumulative normal distribution function. |
double |
getMean()
Returns the mean. |
double |
getVariance()
Returns the variance. |
double |
inverse(double probability)
Inverse of the cumulative normal distribution function. |
double |
probability(double X)
Probability density function of a normal (Gaussian) distribution. |
Methods inherited from class JSci.maths.statistics.ProbabilityDistribution |
checkRange, checkRange, findRoot |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public NormalDistribution()
public NormalDistribution(double mu, double var)
mu
- the mean.var
- the variance.public NormalDistribution(double[] array)
array
- a sample.Method Detail |
public double getMean()
public double getVariance()
public double probability(double X)
probability
in class ProbabilityDistribution
public double cumulative(double X)
cumulative
in class ProbabilityDistribution
public double inverse(double probability)
inverse
in class ProbabilityDistribution
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |