public class BetaPD extends ProbabilityDistribution implements Serializable, Cloneable
Constructor and Description |
---|
BetaPD()
Constructor for the beta 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 beta probability density function.
|
getNumberOfParameters, getPDFGradientApproximation, getPDFHessianApproximation, getRangeOfX, setRangeOfX
public double pdf(double x, double... params)
The probability density function of the beta distribution is $$ f(x; a, b) = x^{a - 1} (1 - x)^{b - 1} \frac{1}{{B(a,b) }} $$ where a>0 and b>0 are shape parameters and the beta function is $$ B(a,b) = \frac{\Gamma(a,b)}{\Gamma(a)\Gamma(b)} $$
pdf
in class ProbabilityDistribution
x
- a double
value in the range of X
params
- a double
array containing the
parameters, a
and b
. The parameters can also be
given in the form pdf(x,a,b)
,
where a
and b
are scalars.
Note: The argument params
is a variable length argument list
(varargs).
double
value equal to the probability density at
x
given the parameter valuespublic double[] getParameterLowerBounds()
getParameterLowerBounds
in class ProbabilityDistribution
double
array containing the lower boundspublic double[] getParameterUpperBounds()
getParameterUpperBounds
in class ProbabilityDistribution
double
array containing the upper boundsCopyright © 2020 Rogue Wave Software. All rights reserved.