Fast Random number generator for normal distribution (Numerical Recipes).
More...
#include <Random.hpp>
|
| | Normaldev (unsigned long long i) |
| | Constructor. More...
|
| |
| float | dev (double mu, double sigma) |
| | Returns a normal random draw with mean mu and standart deviation sigma. More...
|
| |
| float | dev (double mu, double sigma, float max) |
| | Returns a upper bounded normal random draw. More...
|
| |
| float | dev (double mu, double sigma, float min, float max) |
| | Returns a bounded normal random draw. More...
|
| |
| | Ranfib (unsigned long j) |
| | Constructor. More...
|
| |
| double | doub () |
| | Returns random double-precision floating point value in [0,1]. More...
|
| |
| float | fl () |
| | Returns random simple-precision floating point value in [0,1]. More...
|
| |
Fast Random number generator for normal distribution (Numerical Recipes).
| Normaldev::Normaldev |
( |
unsigned long long |
i | ) |
|
|
inline |
| float Normaldev::dev |
( |
double |
mu, |
|
|
double |
sigma |
|
) |
| |
|
inline |
Returns a normal random draw with mean mu and standart deviation sigma.
- Parameters
-
| mu | mean of the distribution |
| sigma | standart deviation of the distribution |
- Returns
- a random number
| float Normaldev::dev |
( |
double |
mu, |
|
|
double |
sigma, |
|
|
float |
max |
|
) |
| |
|
inline |
Returns a upper bounded normal random draw.
- Parameters
-
| mu | mean of the distribution |
| sigma | standard deviation of the distribution |
| max | upper bound of the distribution |
- Returns
- a random number
| float Normaldev::dev |
( |
double |
mu, |
|
|
double |
sigma, |
|
|
float |
min, |
|
|
float |
max |
|
) |
| |
|
inline |
Returns a bounded normal random draw.
- Parameters
-
| mu | mean of the distribution |
| sigma | standard deviation of the distribution |
| min | lower bound of the distribution |
| max | upper bound of the distribution |
- Returns
- a random number
The documentation for this struct was generated from the following file:
- /home/johan/Documents/UNamur/VirtualBelgium/Workspace/VirtualBelgium/include/Random.hpp