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