public class Normal extends ContinuousDistribution
The Normal distribution (1).
References:
Constructor and Description |
---|
Normal()
Default constructor.
|
Normal(double m,
double s)
Create a distribution with the given mean and standard deviation.
|
Modifier and Type | Method and Description |
---|---|
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.
|
public Normal()
public Normal(double m, double s)
m
- the mean.s
- the standard deviation.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.Jas4pp 1.5 © Java Analysis Studio for Particle Physics