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

Functions returning a variate x with normal probability. More...

Public Member Functions

real(dp) function ran_ugaussian ()
 Computes a Gaussian random variate, with mean zero and standard deviation sigma = 1
 
real(dp) function ran_gaussian_sym (scale)
 computes a Gaussian random variate, with mean zero and standard deviation sigma
 
real(dp) function ran_gaussian (loc, scale)
 ran_gaussian computes a Gaussian random variate, with mean zero and standard deviation sigma
 

Detailed Description

Functions returning a variate x with normal probability.

Valid uses:

USE numfor, only rng_normal
x = rng_normal()
x = rng_normal(scale)
x = rng_normal(loc, scale)

Member Function/Subroutine Documentation

◆ ran_gaussian()

real(dp) function ran_gaussian ( real(dp), intent(in) loc,
real(dp), intent(in) scale )

ran_gaussian computes a Gaussian random variate, with mean zero and standard deviation sigma

Returns
Random number
Parameters
[in]locCenter of distribution
[in]scalestandard deviation

◆ ran_gaussian_sym()

real(dp) function ran_gaussian_sym ( real(dp), intent(in) scale)

computes a Gaussian random variate, with mean zero and standard deviation sigma

Returns
Random number
Parameters
[in]scalestandard deviation

◆ ran_ugaussian()

real(dp) function ran_ugaussian

Computes a Gaussian random variate, with mean zero and standard deviation sigma = 1

Returns
Random number

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