Skip to content

bernoulliCDF

Fabian Kindermann edited this page Apr 2, 2021 · 11 revisions
function bernoulliCDF(k, p)

Description:

Calculates the cumulative distribution function

of the Bernoulli distribution with probability to draw a value of .

Input arguments:

  • integer :: k
    The point where to evaluate the cumulative distribution function of the Bernoulli distribution.
  • real*8 :: p
    The probability that a value of is drawn. Note that this input parameter needs to be in the interval .

Return Value:

  • real*8 :: bernoulliCDF
    The value of the cumulative distribution function at k.

References

  • 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
Clone this wiki locally