normalCDF - fabiankindermann/ce-fortran GitHub Wiki
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 varianceof the distribution. If not present, the function uses
sigma = 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