NuMFor 9f2ab49 (2024-04-08)
Numerical (Modern) Fortran. Library for Simple Numerical computing
|
Functions returning a variate x with normal probability. More...
Public Member Functions | |
real(dp) function | ran_ugaussian2 () |
Computes a Gaussian random variate, with mean zero and standard deviation sigma=1 . | |
real(dp) function | ran_gaussian_sym2 (scale) |
real(dp) function | ran_gaussian2 (loc, scale) |
ran_gaussian computes a Gaussian random variate, with mean zero and standard deviation sigma | |
Functions returning a variate x with normal probability.
Valid uses:
This version is faster than rng_normal() but is not thread-safe
real(dp) function ran_gaussian2 | ( | real(dp), intent(in) | loc, |
real(dp), intent(in) | scale ) |
ran_gaussian computes a Gaussian random variate, with mean zero and standard deviation sigma
[in] | loc | Center of distribution |
[in] | scale | standard deviation |
References gauss::ran_ugaussian2().
real(dp) function ran_gaussian_sym2 | ( | real(dp), intent(in) | scale | ) |
[in] | scale | standard deviation |
References gauss::ran_ugaussian2().
real(dp) function ran_ugaussian2 |
Computes a Gaussian random variate, with mean zero and standard deviation sigma=1
.