NuMFor 9f2ab49 (2024-04-08)
Numerical (Modern) Fortran. Library for Simple Numerical computing
ran_gaussian_pdf Interface Reference

This function computes the probability density function (pdf) p(x) at x for a Gaussian distribution with standard deviation scale, using the formula given above. More...

Public Member Functions

real(dp) function ran_gauss_pdf_s0 (x)
 ran_gauss_pdf Computes the probability density function (pdf) for a Gaussian distribution
 
real(dp) function, dimension(size(x)) ran_gauss_pdf_v0 (x)
 ran_gauss_pdf Computes
 
real(dp) function, dimension(size(x)) ran_gauss_pdf_v1 (x, scale)
 ran_gauss_pdf Computes
 
real(dp) function, dimension(size(x)) ran_gauss_pdf_v2 (x, scale, loc)
 ran_gauss_pdf Computes
 

Detailed Description

This function computes the probability density function (pdf) p(x) at x for a Gaussian distribution with standard deviation scale, using the formula given above.

It returns the value of the function

\[ p(x) = {1 \over \sqrt{2 \pi \sigma^2}} \exp (-x^2 / 2\sigma^2) \]

Here the argument x may be scalar or a 1D-vector

Member Function/Subroutine Documentation

◆ ran_gauss_pdf_s0()

real(dp) function ran_gauss_pdf_s0 ( real(dp), intent(in) x)

ran_gauss_pdf Computes the probability density function (pdf) for a Gaussian distribution

Returns
Value of distribution at x
Parameters
[in]xvalue of argument

The documentation for this interface was generated from the following file: