logdBeta¶
- logdBeta(p1, p2, x)¶
Logarithm of the probability density function of a Beta distribution on
.
- Parameters:
- alphafloat,
Parameter
.
- betafloat,
Parameter
.
- xfloat
Location.
- alphafloat,
- Returns:
- logpfloat
The logarithm of the PDF at
.
Notes
The logarithm of the probability density function is defined as:
with
and where
denotes Euler’s beta function
Beta().Outside the open interval
, the returned value is
. This function avoids the underflow that may occur when evaluating the PDF directly.
Examples
>>> import openturns as ot >>> logpdf = ot.DistFunc.logdBeta(2.5, 3.5, 0.9)
OpenTURNS