uniformPDF - fabiankindermann/ce-fortran GitHub Wiki
function uniformPDF(x, a, b)
Calculates the probability density function
-
real*8 :: x
The point where to evaluate the probability density function of the uniform distribution.
-
real*8 :: a
The left endpoint of the interval on which the distribution exists. If not present, the function usesa = 0
. -
real*8 :: b
The right endpoint of the interval on which the distribution exists. If not present, the function usesb = 1
. Note thatneeds to hold, otherwise the function throws an error message.
-
real*8 :: uniformPDF
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