public class GumbelDistribution extends AbstractDistribution
Modifier and Type | Class and Description |
---|---|
static class |
GumbelDistribution.Parameterizer
Parameterization class
|
Modifier and Type | Field and Description |
---|---|
(package private) double |
beta
Shape parameter beta.
|
(package private) double |
mu
Mode parameter mu.
|
random
Constructor and Description |
---|
GumbelDistribution(double mu,
double beta)
Constructor.
|
GumbelDistribution(double mu,
double beta,
java.util.Random random)
Constructor.
|
GumbelDistribution(double mu,
double beta,
RandomFactory random)
Constructor.
|
Modifier and Type | Method and 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 distribution
|
double |
getBeta()
Get the shape
|
double |
getMu()
Get the location
|
double |
logpdf(double x)
Return the log density of an existing value
|
static double |
logpdf(double x,
double mu,
double beta)
log PDF of Gumbel distribution
|
double |
nextRandom()
Generate a new random value
|
double |
pdf(double x)
Return the density of an existing value
|
static double |
pdf(double x,
double mu,
double beta)
PDF of Gumbel distribution
|
double |
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 distribution
|
java.lang.String |
toString()
Describe the distribution
|
public GumbelDistribution(double mu, double beta)
mu
- Modebeta
- Shapepublic GumbelDistribution(double mu, double beta, java.util.Random random)
mu
- Modebeta
- Shaperandom
- Random number generatorpublic GumbelDistribution(double mu, double beta, RandomFactory random)
mu
- Modebeta
- Shaperandom
- Random number generatorpublic double getMu()
public double getBeta()
public static double pdf(double x, double mu, double beta)
x
- Valuemu
- Modebeta
- Shapepublic double pdf(double x)
Distribution
x
- existing valuepublic static double logpdf(double x, double mu, double beta)
x
- Valuemu
- Modebeta
- Shapepublic double logpdf(double x)
Distribution
x
- existing valuepublic static double cdf(double val, double mu, double beta)
val
- Valuemu
- Modebeta
- Shapepublic double cdf(double val)
Distribution
val
- existing valuepublic static double quantile(double val, double mu, double beta)
val
- Valuemu
- Modebeta
- Shapepublic double quantile(double val)
Distribution
val
- Quantile to findpublic double nextRandom()
Distribution
nextRandom
in interface Distribution
nextRandom
in class AbstractDistribution
public java.lang.String toString()
Distribution
toString
in interface Distribution
toString
in class java.lang.Object
Copyright © 2019 ELKI Development Team. License information.