Functions related to the generation of random numbers.
More...
|
double | rng::powerlaw_rand (std::vector< double > ¶m, std::mt19937 &_engine) |
| Generates a random real number following a power-law distribution of the form with . More...
|
|
double | rng::powerlaw_m1 (std::vector< double > ¶m) |
| Returns the first moment of a power-law distribution of the form with . More...
|
|
double | rng::powerlaw_hardcutoff_rand (std::vector< double > ¶m, std::mt19937 &_engine) |
| Generates a random real number following a power-law distribution of the form with (i.e., hard cut-off). More...
|
|
double | rng::powerlaw_hardcutoff_m1 (std::vector< double > ¶m) |
| Returns the first moment of a power-law distribution of the form with (i.e., hard cut-off). More...
|
|
double | rng::exponential_rand (std::vector< double > ¶m, std::mt19937 &_engine) |
| Generates a random real number following an exponential distribution of the form with . More...
|
|
double | rng::exponential_m1 (double param) |
| Returns the first moment of an exponential distribution of the form with . More...
|
|
double | rng::gamma_rand (std::vector< double > ¶m, std::mt19937 &_engine) |
| Generates a random real number following a gamma distribution of the form with . More...
|
|
double | rng::gamma_m1 (std::vector< double > param) |
| Returns the first moment of a gamma distribution of the form with . More...
|
|
Functions related to the generation of random numbers.
Set of functions that generate random numbers from a variety of distributions and provides some of their moments and cumulants. Notice that all the functions listed in this group are within the "rng" namespace.
double rng::exponential_m1 |
( |
double |
param | ) |
|
double rng::exponential_rand |
( |
std::vector< double > & |
param, |
|
|
std::mt19937 & |
_engine |
|
) |
| |
double rng::gamma_m1 |
( |
std::vector< double > |
param | ) |
|
double rng::gamma_rand |
( |
std::vector< double > & |
param, |
|
|
std::mt19937 & |
_engine |
|
) |
| |
double rng::powerlaw_hardcutoff_m1 |
( |
std::vector< double > & |
param | ) |
|
double rng::powerlaw_hardcutoff_rand |
( |
std::vector< double > & |
param, |
|
|
std::mt19937 & |
_engine |
|
) |
| |
double rng::powerlaw_m1 |
( |
std::vector< double > & |
param | ) |
|
double rng::powerlaw_rand |
( |
std::vector< double > & |
param, |
|
|
std::mt19937 & |
_engine |
|
) |
| |