|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectde.unidu.is.statistics.Distribution
de.unidu.is.statistics.NormalDistribution
An class modelling a normal (Gaussian) probabilistic distributions.
The normal distribution is defined by the expectation E(x) and
the variance E((x^2 - * E(x)^2).
| Field Summary | |
protected Moments |
moments
Moments of the normal distribution. |
| Constructor Summary | |
NormalDistribution()
Constructs a new object. |
|
NormalDistribution(double expectation,
double variance)
Constructs a new normal distribution, based on the specified expectation and variance. |
|
NormalDistribution(Moments moments)
Constructs a new normal distribution, based on the specified expectation and variance. |
|
| Method Summary | |
void |
computeValues(int num,
double[] ret)
Computes actual values based on the underlying normal distribution when having the specified number of items, and writes them in decreasing order into the specified array (as many values as possible). |
double |
getExpectation()
Returns the expectation of this normal distribution. |
Moments |
getMoments()
Returns the moments of this normal distribution. |
double |
getVariance()
Returns the variance of this normal distribution. |
double |
inverse(double y)
The point a such that the integral from -infinity to a equals y. |
void |
setMoments(Moments moments)
Sets the moments. |
| Methods inherited from class de.unidu.is.statistics.Distribution |
computeValues, eliminateZero |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected Moments moments
| Constructor Detail |
public NormalDistribution()
public NormalDistribution(Moments moments)
moments - moments of the normal distribution
public NormalDistribution(double expectation,
double variance)
expectation - expectation of the normal distributionvariance - variance of the normal distribution| Method Detail |
public double inverse(double y)
y - y
public void computeValues(int num,
double[] ret)
computeValues in class Distributionnum - number of items in totalret - array for the actual valuespublic double getExpectation()
public double getVariance()
public Moments getMoments()
public void setMoments(Moments moments)
moments - moments to set.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||