
public class CauchyDistribution extends AbstractDistribution
| Modifier and Type | Class and Description |
|---|---|
static class |
CauchyDistribution.Parameterizer
Parameterization class
|
| Modifier and Type | Field and Description |
|---|---|
(package private) double |
location
The location (x0) parameter.
|
(package private) double |
shape
The shape (gamma) parameter.
|
random| Constructor and Description |
|---|
CauchyDistribution(double location,
double shape)
Constructor with default random.
|
CauchyDistribution(double location,
double shape,
Random random)
Constructor.
|
CauchyDistribution(double location,
double shape,
RandomFactory random)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
double |
cdf(double x)
Return the cumulative density function at the given value.
|
static double |
cdf(double x,
double location,
double shape)
PDF function, static version.
|
double |
nextRandom()
Generate a new random value
|
double |
pdf(double x)
Return the density of an existing value
|
static double |
pdf(double x,
double location,
double shape)
PDF function, static version.
|
double |
quantile(double x)
Quantile aka probit (for normal) aka inverse CDF (invcdf, cdf^-1) function.
|
static double |
quantile(double x,
double location,
double shape)
PDF function, static version.
|
String |
toString()
Describe the distribution
|
final double location
final double shape
public CauchyDistribution(double location,
double shape)
location - Location (x0)shape - Shape (gamma)public CauchyDistribution(double location,
double shape,
Random random)
location - Location (x0)shape - Shape (gamma)random - Random generatorpublic CauchyDistribution(double location,
double shape,
RandomFactory random)
location - Location (x0)shape - Shape (gamma)random - Random generatorpublic double pdf(double x)
Distributionx - existing valuepublic double cdf(double x)
Distributionx - existing valuepublic double quantile(double x)
Distributionx - Quantile to findpublic double nextRandom()
DistributionnextRandom in interface DistributionnextRandom in class AbstractDistributionpublic static double pdf(double x,
double location,
double shape)
x - Valuelocation - Location (x0)shape - Shape (gamma)public static double cdf(double x,
double location,
double shape)
x - Valuelocation - Location (x0)shape - Shape (gamma)public static double quantile(double x,
double location,
double shape)
x - Valuelocation - Location (x0)shape - Shape (gamma)public String toString()
DistributiontoString in interface DistributiontoString in class ObjectCopyright © 2015 ELKI Development Team, Lehr- und Forschungseinheit für Datenbanksysteme, Ludwig-Maximilians-Universität München. License information.