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,
java.util.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 |
getLocation()
Get the location parameter.
|
double |
getShape()
Return the shape parameter.
|
double |
logpdf(double x)
Return the log density of an existing value
|
static double |
logpdf(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.
|
java.lang.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, java.util.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 getLocation()
public double getShape()
public double pdf(double x)
Distribution
x
- existing valuepublic double logpdf(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 logpdf(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 java.lang.String toString()
Distribution
toString
in interface Distribution
toString
in class java.lang.Object
Copyright © 2019 ELKI Development Team. License information.