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 for the two shape parameters of the beta
distribution.
|
double[] |
getParameterUpperBounds()
Returns the upper bounds for the two shape parameters of the beta
distribution.
|
double |
pdf(double x,
double[] params)
Returns the value of the beta probability density function.
|
getNumberOfParameters, getPDFGradientApproximation, getPDFHessianApproximation, getRangeOfX, setRangeOfX
public double[] getParameterLowerBounds()
getParameterLowerBounds
in class ProbabilityDistribution
double
array containing the lower boundspublic double[] getParameterUpperBounds()
getParameterUpperBounds
in class ProbabilityDistribution
double
array containing the upper boundspublic double pdf(double x, double[] params)
The probability density function of the beta distribution is
where a>0 and b>0 are shape parameters and the beta function ispdf
in class ProbabilityDistribution
x
- a double
value in the range of X
params
- a double
array containing values of the
parameters, with params[0]
="a" and
params[1]
="b". The argument can also be a
comma-delimited list "a", "b" or
params[0]
,params[1]
.
Note: The argument params
is a variable length argument list
(varargs).
double
value equal to the probability density at
x
given the parameter valuesCopyright © 1970-2015 Rogue Wave Software
Built October 13 2015.