|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.doodleproject.numerics4j.statistics.distribution.ContinuousDistribution net.sf.doodleproject.numerics4j.statistics.distribution.NormalDistribution
public class NormalDistribution
The Normal distribution (1).
References:
Constructor Summary | |
---|---|
NormalDistribution()
Default constructor. |
|
NormalDistribution(double m,
double s)
Create a distribution with the given mean and standard deviation. |
Method Summary | |
---|---|
double |
cumulativeProbability(double x)
The CDF for this distribution. |
double |
getMean()
Access the mean. |
double |
getStandardDeviation()
Access the standard deviation. |
double |
inverseCumulativeProbability(double p)
The inverse CDF for this distribution. |
void |
setMean(double m)
Modify the mean. |
void |
setStandardDeviation(double std)
Modify the standard deviation. |
Methods inherited from class net.sf.doodleproject.numerics4j.statistics.distribution.ContinuousDistribution |
---|
findInverseCumulativeProbability |
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 m, double s)
m
- the mean.s
- the standard deviation.Method Detail |
---|
public double cumulativeProbability(double x) throws NumericException
cumulativeProbability
in class ContinuousDistribution
x
- the value at which the CDF is evaluated.
NumericException
- if the cumulative probability can not be
computed.public double getMean()
public double getStandardDeviation()
public double inverseCumulativeProbability(double p) throws NumericException
inverseCumulativeProbability
in class ContinuousDistribution
p
- the cumulative probability.
NumericException
- if the inverse cumulative probability can not be
computed.public void setMean(double m)
m
- the new mean value.public void setStandardDeviation(double std)
std
- The new standard deviation value.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |