public class Laplace extends ContinuousDistribution
The Laplace distribution.
References:
| Constructor and Description |
|---|
Laplace()
Default constructor.
|
Laplace(double m,
double s)
Create a distribution with the given mean and scale.
|
| Modifier and Type | Method and Description |
|---|---|
double |
cumulativeProbability(double x)
The CDF for this distribution.
|
double |
getMean()
Access the mean.
|
double |
getScale()
Access the scale.
|
double |
inverseCumulativeProbability(double p)
The inverse CDF for this distribution.
|
void |
setMean(double m)
Modify the mean.
|
void |
setScale(double s)
Modify the scale.
|
public Laplace()
public Laplace(double m,
double s)
m - the mean.s - the scale.public double cumulativeProbability(double x)
cumulativeProbability in class ContinuousDistributionx - the value at which the CDF is evaluated.public double getMean()
public double getScale()
public double inverseCumulativeProbability(double p)
inverseCumulativeProbability in class ContinuousDistributionp - the cumulative probability.public void setMean(double m)
m - the new mean value.public void setScale(double s)
s - the new scale value.DMelt 2.0 © DataMelt by jWork.ORG