public class GammaPD extends ProbabilityDistribution implements Serializable, Cloneable
| Constructor and Description |
|---|
GammaPD()
Constructor for the gamma 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 |
pdf(double x,
double... params)
Returns the value of the gamma probability density function.
|
getNumberOfParameters, getPDFGradientApproximation, getPDFHessianApproximation, getRangeOfX, setRangeOfXpublic double pdf(double x,
double... params)
The probability density function of the gamma distribution is
$$ f(x; a, b) = x^{a - 1} \frac{1}{{b^{a} \Gamma (a)}} e^{ - {x}/{b}} $$
where \( a > 0\) and \( b> 0\) are the shape and scale parameters, respectively.pdf in class ProbabilityDistributionx - a double, the value (quantile) at which to
evaluate the pdfparams - a double array specifying the parameters,
a and b. The parameters can also be given
in the form pdf(x,a,b),
where a and b are scalars.double, the probability density at
x given the parameter valuespublic double[] getParameterLowerBounds()
getParameterLowerBounds in class ProbabilityDistributiondouble array containing the lower bounds for
\( a > 0\) and \( b> 0\)public double[] getParameterUpperBounds()
getParameterUpperBounds in class ProbabilityDistributiondouble array containing the upper bounds
for \( a > 0\) and \( b> 0\)Copyright © 2020 Rogue Wave Software. All rights reserved.