#include <randomtools.h>
|
static T_real | randr (T_real low, T_real high) |
| Return a random Real between [lo, hi) More...
|
|
static T_real | randr () |
| Return a random Real between [0, 1) More...
|
|
static T_real | Normalr () |
| Return a standard normal random Real. More...
|
|
static T_real | Normal_log_prob (T_real x, T_real mu, T_real sigma) |
| Return the log probability of given normal distribution. More...
|
|
static void | setRandomSeed (unsigned randomSeed) |
|
static int | randi (int low, int high) |
|
◆ Normal_log_prob()
template<typename T_real = double>
static T_real RandomNumber< T_real >::Normal_log_prob |
( |
T_real |
x, |
|
|
T_real |
mu, |
|
|
T_real |
sigma |
|
) |
| |
|
inlinestatic |
Return the log probability of given normal distribution.
- Template Parameters
-
- Parameters
-
x | the normal random number |
mu | the mean of distribution |
sigma | the variance of the distribution |
- Returns
- T_real Real type
◆ Normalr()
template<typename T_real = double>
◆ randi()
template<typename T_real = double>
static int RandomNumber< T_real >::randi |
( |
int |
low, |
|
|
int |
high |
|
) |
| |
|
inlinestatic |
◆ randr() [1/2]
template<typename T_real = double>
Return a random Real between [0, 1)
- Template Parameters
-
- Parameters
-
lo | lower bound |
hi | upper bound (not included) |
- Returns
- T_real: Real type
◆ randr() [2/2]
template<typename T_real = double>
static T_real RandomNumber< T_real >::randr |
( |
T_real |
low, |
|
|
T_real |
high |
|
) |
| |
|
inlinestatic |
Return a random Real between [lo, hi)
- Template Parameters
-
- Parameters
-
low | lower bound |
high | upper bound (not included) |
- Returns
- T_real: Real type
References RandomNumber< T_real >::re.
◆ setRandomSeed()
template<typename T_real = double>
static void RandomNumber< T_real >::setRandomSeed |
( |
unsigned |
randomSeed | ) |
|
|
inlinestatic |
◆ default_real_distr
template<typename T_real = double>
std::uniform_real_distribution<T_real> RandomNumber< T_real >::default_real_distr {0.0, 1.0} |
|
inlinestatic |
◆ re
template<typename T_real = double>
◆ standard_normal_distr
template<typename T_real = double>
std::normal_distribution<T_real> RandomNumber< T_real >::standard_normal_distr {0.0, 1.0} |
|
inlinestatic |
The documentation for this struct was generated from the following file: