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)
Distribution
x
- existing valuepublic double cdf(double x)
Distribution
x
- existing valuepublic double quantile(double x)
Distribution
x
- Quantile to findpublic double nextRandom()
Distribution
nextRandom
in interface Distribution
nextRandom
in class AbstractDistribution
public 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()
Distribution
toString
in interface Distribution
toString
in class Object
Copyright © 2015 ELKI Development Team, Lehr- und Forschungseinheit für Datenbanksysteme, Ludwig-Maximilians-Universität München. License information.