Class CauchyDistribution
- java.lang.Object
-
- elki.math.statistics.distribution.CauchyDistribution
-
- All Implemented Interfaces:
Distribution
public class CauchyDistribution extends java.lang.Object implements Distribution
Cauchy distribution.- Since:
- 0.6.0
- Author:
- Erich Schubert
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classCauchyDistribution.ParParameterization class-
Nested classes/interfaces inherited from interface elki.math.statistics.distribution.Distribution
Distribution.Parameterizer
-
-
Constructor Summary
Constructors Constructor Description CauchyDistribution(double location, double shape)Constructor with default random.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description doublecdf(double x)Return the cumulative density function at the given value.static doublecdf(double x, double location, double shape)PDF function, static version.doublegetLocation()Get the location parameter.doublegetShape()Return the shape parameter.doublelogpdf(double x)Return the log density of an existing valuestatic doublelogpdf(double x, double location, double shape)PDF function, static version.doublenextRandom(java.util.Random random)Generate a new random valuedoublepdf(double x)Return the density of an existing valuestatic doublepdf(double x, double location, double shape)PDF function, static version.doublequantile(double x)Quantile aka probit (for normal) aka inverse CDF (invcdf, cdf^-1) function.static doublequantile(double x, double location, double shape)PDF function, static version.java.lang.StringtoString()Describe the distribution
-
-
-
Method Detail
-
getLocation
public double getLocation()
Get the location parameter.- Returns:
- Location
-
getShape
public double getShape()
Return the shape parameter.- Returns:
- Shape
-
pdf
public double pdf(double x)
Description copied from interface:DistributionReturn the density of an existing value- Specified by:
pdfin interfaceDistribution- Parameters:
x- existing value- Returns:
- distribution density
-
logpdf
public double logpdf(double x)
Description copied from interface:DistributionReturn the log density of an existing value- Specified by:
logpdfin interfaceDistribution- Parameters:
x- existing value- Returns:
- log distribution density
-
cdf
public double cdf(double x)
Description copied from interface:DistributionReturn the cumulative density function at the given value.- Specified by:
cdfin interfaceDistribution- Parameters:
x- existing value- Returns:
- cumulative density
-
quantile
public double quantile(double x)
Description copied from interface:DistributionQuantile aka probit (for normal) aka inverse CDF (invcdf, cdf^-1) function.- Specified by:
quantilein interfaceDistribution- Parameters:
x- Quantile to find- Returns:
- Quantile position
-
nextRandom
public double nextRandom(java.util.Random random)
Description copied from interface:DistributionGenerate a new random value- Specified by:
nextRandomin interfaceDistribution- Parameters:
random- Random number generator- Returns:
- new random value
-
pdf
public static double pdf(double x, double location, double shape)PDF function, static version.- Parameters:
x- Valuelocation- Location (x0)shape- Shape (gamma)- Returns:
- PDF value
-
logpdf
public static double logpdf(double x, double location, double shape)PDF function, static version.- Parameters:
x- Valuelocation- Location (x0)shape- Shape (gamma)- Returns:
- PDF value
-
cdf
public static double cdf(double x, double location, double shape)PDF function, static version.- Parameters:
x- Valuelocation- Location (x0)shape- Shape (gamma)- Returns:
- PDF value
-
quantile
public static double quantile(double x, double location, double shape)PDF function, static version.- Parameters:
x- Valuelocation- Location (x0)shape- Shape (gamma)- Returns:
- PDF value
-
toString
public java.lang.String toString()
Description copied from interface:DistributionDescribe the distribution- Specified by:
toStringin interfaceDistribution- Overrides:
toStringin classjava.lang.Object- Returns:
- description
-
-