public class ExtremeValuePD extends ProbabilityDistribution implements Serializable, Cloneable, PDFHessianInterface
Constructor and Description |
---|
ExtremeValuePD()
Constructor for the extreme value/Gumbel probability distribution.
|
Modifier and Type | Method and Description |
---|---|
double[] |
getParameterLowerBounds()
Returns the lower bounds of the parameters.
|
double[] |
getParameterUpperBounds()
Returns the upper bounds of the parameters.
|
double[] |
getPDFGradient(double x,
double... params)
Returns the analytic gradient of the pdf.
|
double[][] |
getPDFHessian(double x,
double... params)
Returns the analytic Hessian of the pdf.
|
double |
pdf(double x,
double... params)
Returns the value of the extreme value probability density function.
|
getNumberOfParameters, getPDFGradientApproximation, getPDFHessianApproximation, getRangeOfX, setRangeOfX
public ExtremeValuePD()
public double[] getParameterLowerBounds()
getParameterLowerBounds
in class ProbabilityDistribution
double
array of length 2 containing the lower
bounds for \(\mu \in\mathbb{R}\) and \(\beta>0\)public double[] getParameterUpperBounds()
getParameterUpperBounds
in class ProbabilityDistribution
double
array of length 2 containing the upper
bounds for \(\mu \in\mathbb{R}\) and \(\beta>0\)public double pdf(double x, double... params)
The probability density function of the extreme value distribution is $$f(x;\mu,\beta)=\frac{1}{\beta}e^{\frac{x-\mu}{\beta}}\exp\left(-e^{\frac{x-\mu}{\beta}}\right)$$ where \(\mu \in\mathbb{R}\) is the location parameter and \(\beta>0\) is the scale parameter.
pdf
in class ProbabilityDistribution
x
- a double
, the value (quantile) at which to evaluate
the pdfparams
- a double
array containing the parameters,
with params[0]
=\(\mu\) and
params[1]
=\(\beta\).
The parameters can also be given in the form pdf(x,a,b)
,
where a
=\(\mu\) and b
=\(\beta\) are scalars.double
,the probability density at
x
given the parameter valuespublic double[][] getPDFHessian(double x, double... params)
getPDFHessian
in interface PDFHessianInterface
x
- a double
, the value at which to evaluate
the Hessianparams
- a double
array containing values of the
parametersdouble
matrix containing the second partial
derivatives of the pdf with respect to the parameterspublic double[] getPDFGradient(double x, double... params)
getPDFGradient
in interface PDFGradientInterface
x
- a double
, the value at which to evaluate the
gradientparams
- a double
array containing values of the
parametersdouble
array containing the first partial
derivative of the pdf with respect to the parametersCopyright © 2020 Rogue Wave Software. All rights reserved.