Package com.imsl.stat.distributions
Class ExtremeValuePD
java.lang.Object
com.imsl.stat.distributions.ProbabilityDistribution
com.imsl.stat.distributions.ExtremeValuePD
- All Implemented Interfaces:
com.imsl.stat.distributions.MethodOfMomentsInterface,PDFGradientInterface,PDFHessianInterface,Serializable,Cloneable
public class ExtremeValuePD
extends ProbabilityDistribution
implements Serializable, Cloneable, com.imsl.stat.distributions.MethodOfMomentsInterface, PDFHessianInterface
The extreme value/Gumbel probability distribution.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionConstructor for the extreme value/Gumbel probability distribution. -
Method Summary
Modifier and TypeMethodDescriptiondouble[]Returns the lower bounds of the parameters.double[]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.doublepdf(double x, double... params) Returns the value of the extreme value probability density function.Methods inherited from class com.imsl.stat.distributions.ProbabilityDistribution
getNumberOfParameters, getPDFGradientApproximation, getPDFHessianApproximation, getRangeOfX, setRangeOfX
-
Constructor Details
-
ExtremeValuePD
public ExtremeValuePD()Constructor for the extreme value/Gumbel probability distribution.
-
-
Method Details
-
getParameterLowerBounds
public double[] getParameterLowerBounds()Returns the lower bounds of the parameters.- Specified by:
getParameterLowerBoundsin classProbabilityDistribution- Returns:
- a
doublearray of length 2 containing the lower bounds for \(\mu \in\mathbb{R}\) and \(\beta>0\)
-
getParameterUpperBounds
public double[] getParameterUpperBounds()Returns the upper bounds of the parameters.- Specified by:
getParameterUpperBoundsin classProbabilityDistribution- Returns:
- a
doublearray of length 2 containing the upper bounds for \(\mu \in\mathbb{R}\) and \(\beta>0\)
-
pdf
public double pdf(double x, double... params) Returns the value of the extreme value probability density function.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.
- Specified by:
pdfin classProbabilityDistribution- Parameters:
x- adouble, the value (quantile) at which to evaluate the pdfparams- adoublearray containing the parameters, withparams[0]=\(\mu\) andparams[1]=\(\beta\). The parameters can also be given in the formpdf(x,a,b), wherea=\(\mu\) andb=\(\beta\) are scalars.- Returns:
- a
double,the probability density atxgiven the parameter values
-
getPDFHessian
public double[][] getPDFHessian(double x, double... params) Returns the analytic Hessian of the pdf.- Specified by:
getPDFHessianin interfacePDFHessianInterface- Parameters:
x- adouble, the value at which to evaluate the Hessianparams- adoublearray containing values of the parameters- Returns:
- a
doublematrix containing the second partial derivatives of the pdf with respect to the parameters
-
getPDFGradient
public double[] getPDFGradient(double x, double... params) Returns the analytic gradient of the pdf.- Specified by:
getPDFGradientin interfacePDFGradientInterface- Parameters:
x- adouble, the value at which to evaluate the gradientparams- adoublearray containing values of the parameters- Returns:
- a
doublearray containing the first partial derivative of the pdf with respect to the parameters
-