public class GeneralizedExtremeValueDistribution extends AbstractDistribution
Modifier and Type | Class and Description |
---|---|
static class |
GeneralizedExtremeValueDistribution.Parameterizer
Parameterization class
|
Modifier and Type | Field and Description |
---|---|
(package private) double |
k
Parameters (location, scale, shape)
|
(package private) double |
mu
Parameters (location, scale, shape)
|
(package private) double |
sigma
Parameters (location, scale, shape)
|
random
Constructor and Description |
---|
GeneralizedExtremeValueDistribution(double mu,
double sigma,
double k)
Constructor.
|
GeneralizedExtremeValueDistribution(double mu,
double sigma,
double k,
java.util.Random random)
Constructor.
|
GeneralizedExtremeValueDistribution(double mu,
double sigma,
double k,
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 sigma,
double k)
CDF of GEV distribution
|
double |
getK()
Get the k parameter.
|
double |
getMu()
Get location.
|
double |
getSigma()
Get sigma.
|
double |
logpdf(double x)
Return the log density of an existing value
|
static double |
logpdf(double x,
double mu,
double sigma,
double k)
log PDF of GEV distribution
|
double |
pdf(double x)
Return the density of an existing value
|
static double |
pdf(double x,
double mu,
double sigma,
double k)
PDF of GEV 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 sigma,
double k)
Quantile function of GEV distribution
|
java.lang.String |
toString()
Describe the distribution
|
nextRandom
final double mu
final double sigma
final double k
public GeneralizedExtremeValueDistribution(double mu, double sigma, double k)
mu
- Location parameter musigma
- Scale parameter sigmak
- Shape parameter kpublic GeneralizedExtremeValueDistribution(double mu, double sigma, double k, RandomFactory random)
mu
- Location parameter musigma
- Scale parameter sigmak
- Shape parameter krandom
- Random number generatorpublic GeneralizedExtremeValueDistribution(double mu, double sigma, double k, java.util.Random random)
mu
- Location parameter musigma
- Scale parameter sigmak
- Shape parameter krandom
- Random number generatorpublic double getMu()
public double getSigma()
public double getK()
public double pdf(double x)
Distribution
x
- existing valuepublic static double pdf(double x, double mu, double sigma, double k)
x
- Valuemu
- Location parameter musigma
- Scale parameter sigmak
- Shape parameter kpublic double logpdf(double x)
Distribution
x
- existing valuepublic static double logpdf(double x, double mu, double sigma, double k)
x
- Valuemu
- Location parameter musigma
- Scale parameter sigmak
- Shape parameter kpublic double cdf(double val)
Distribution
val
- existing valuepublic static double cdf(double val, double mu, double sigma, double k)
val
- Valuemu
- Location parameter musigma
- Scale parameter sigmak
- Shape parameter kpublic double quantile(double val)
Distribution
val
- Quantile to findpublic static double quantile(double val, double mu, double sigma, double k)
val
- Valuemu
- Location parameter musigma
- Scale parameter sigmak
- Shape parameter kpublic java.lang.String toString()
Distribution
toString
in interface Distribution
toString
in class java.lang.Object
Copyright © 2019 ELKI Development Team. License information.