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