-
Notifications
You must be signed in to change notification settings - Fork 46
normalPDF
Fabian Kindermann edited this page Apr 2, 2021
·
10 revisions
function normalPDF(x, mu, sigma)
Calculates the probability density function
-
real*8 :: x
The point where to evaluate the probability density 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 :: normalPDF
The value of the density atx
.
- For further reading refer to:
- Toral, R. & Colet, P. (2014). Stochastic Numerical Methods: An Introduction for Students and Scientists. Weinheim: Wiley.
- This routine is used in the following programs:
prog02_15.f90