Class GumbelDistribution
- java.lang.Object
-
- elki.math.statistics.distribution.GumbelDistribution
-
- All Implemented Interfaces:
Distribution
public class GumbelDistribution extends java.lang.Object implements Distribution
Gumbel distribution, also known as Log-Weibull distribution.- Since:
- 0.6.0
- Author:
- Erich Schubert
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
GumbelDistribution.Par
Parameterization class-
Nested classes/interfaces inherited from interface elki.math.statistics.distribution.Distribution
Distribution.Parameterizer
-
-
Constructor Summary
Constructors Constructor Description GumbelDistribution(double mu, double beta)
Constructor.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description double
cdf(double val)
Return the cumulative density function at the given value.static double
cdf(double val, double mu, double beta)
CDF of Gumbel distributiondouble
getBeta()
Get the shapedouble
getMu()
Get the locationdouble
logpdf(double x)
Return the log density of an existing valuestatic double
logpdf(double x, double mu, double beta)
log PDF of Gumbel distributiondouble
nextRandom(java.util.Random random)
Generate a new random valuedouble
pdf(double x)
Return the density of an existing valuestatic double
pdf(double x, double mu, double beta)
PDF of Gumbel distributiondouble
quantile(double val)
Quantile aka probit (for normal) aka inverse CDF (invcdf, cdf^-1) function.static double
quantile(double val, double mu, double beta)
Quantile function of Gumbel distributionjava.lang.String
toString()
Describe the distribution
-
-
-
Method Detail
-
getMu
public double getMu()
Get the location- Returns:
- Mu
-
getBeta
public double getBeta()
Get the shape- Returns:
- Beta
-
pdf
public static double pdf(double x, double mu, double beta)
PDF of Gumbel distribution- Parameters:
x
- Valuemu
- Modebeta
- Shape- Returns:
- PDF at position x.
-
pdf
public double pdf(double x)
Description copied from interface:Distribution
Return the density of an existing value- Specified by:
pdf
in interfaceDistribution
- Parameters:
x
- existing value- Returns:
- distribution density
-
logpdf
public static double logpdf(double x, double mu, double beta)
log PDF of Gumbel distribution- Parameters:
x
- Valuemu
- Modebeta
- Shape- Returns:
- PDF at position x.
-
logpdf
public double logpdf(double x)
Description copied from interface:Distribution
Return the log density of an existing value- Specified by:
logpdf
in interfaceDistribution
- Parameters:
x
- existing value- Returns:
- log distribution density
-
cdf
public static double cdf(double val, double mu, double beta)
CDF of Gumbel distribution- Parameters:
val
- Valuemu
- Modebeta
- Shape- Returns:
- CDF at position x.
-
cdf
public double cdf(double val)
Description copied from interface:Distribution
Return the cumulative density function at the given value.- Specified by:
cdf
in interfaceDistribution
- Parameters:
val
- existing value- Returns:
- cumulative density
-
quantile
public static double quantile(double val, double mu, double beta)
Quantile function of Gumbel distribution- Parameters:
val
- Valuemu
- Modebeta
- Shape- Returns:
- Quantile function at position x.
-
quantile
public double quantile(double val)
Description copied from interface:Distribution
Quantile aka probit (for normal) aka inverse CDF (invcdf, cdf^-1) function.- Specified by:
quantile
in interfaceDistribution
- Parameters:
val
- Quantile to find- Returns:
- Quantile position
-
nextRandom
public double nextRandom(java.util.Random random)
Description copied from interface:Distribution
Generate a new random value- Specified by:
nextRandom
in interfaceDistribution
- Parameters:
random
- Random number generator- Returns:
- new random value
-
toString
public java.lang.String toString()
Description copied from interface:Distribution
Describe the distribution- Specified by:
toString
in interfaceDistribution
- Overrides:
toString
in classjava.lang.Object
- Returns:
- description
-
-