-
Notifications
You must be signed in to change notification settings - Fork 46
betaPDF
Fabian Kindermann edited this page Apr 2, 2021
·
10 revisions
function betaPDF(x, p, q)
Calculates the probability density function
-
real*8 :: x
The point where to evaluate the probability density function of the beta distribution.
-
real*8 :: p
Shape parameter. If not present, the function usesp = 1
. Note that this input variable needs to be strictly greater than zero. -
real*8 :: q
Shape parameter. If not present, the function usesq = 1
. Note that this input variable needs to be strictly greater than zero.
-
real*8 :: betaPDF
The value of the density atx
.
- Parts of this routine were copied and adapted from:
- Fortran Code by John Burkardt available as Algorithm ASA245.
- For further reading refer to:
- Toral, R. & Colet, P. (2014). Stochastic Numerical Methods: An Introduction for Students and Scientists. Weinheim: Wiley.
- Macleod, A.J. (1989). Algorithm AS 245: A Robust and Reliable Algorithm for the Logarithm of the Gamma Function. Applied Statistics, 38(2), 397-402.
- This routine is used in the following programs:
prog02_15.f90