-
Notifications
You must be signed in to change notification settings - Fork 46
normalCDF
Fabian Kindermann edited this page Apr 1, 2021
·
11 revisions
function normalCDF(x, mu, sigma)
Calculates the cumulative distribution function
-
real*8 :: x
The point where to evaluate the cumulative distribution function of the normal distribution.
-
real*8 :: mu
The mean of the distribution. If not present, the function usesmu = 0
. -
real*8 :: sigma
The variance of the distribution. If not present, the function usessigma = 1
. Note that this input variable needs to be strictly greater than zero.
-
real*8 :: normalCDF
The value of the cumulative distribution function atx
.
- Parts of this routine were copied and adapted from:
- Fortran Code by John Burkardt available as Algorithm ASA066.
- For further reading refer to:
- Toral, R. & Colet, P. (2014). Stochastic Numerical Methods: An Introduction for Students and Scientists. Weinheim: Wiley.
- Hill, D. (1973). Algorithm AS 66: The Normal Integral. Applied Statistics, 22(3), 424-427.
- This routine is used in the following programs:
prog02_15.f90
prog04_04.f90