Functions related to random number generators for various distributions. More...
Functions | |
double | powerlaw_rand (std::vector< double > ¶m, std::mt19937 &_engine) |
Generates a random real number following a power-law distribution of the form ![]() ![]() | |
double | powerlaw_m1 (std::vector< double > ¶m) |
Returns the first moment of a power-law distribution of the form ![]() ![]() | |
double | powerlaw_hardcutoff_rand (std::vector< double > ¶m, std::mt19937 &_engine) |
Generates a random real number following a power-law distribution of the form ![]() ![]() | |
double | powerlaw_hardcutoff_m1 (std::vector< double > ¶m) |
Returns the first moment of a power-law distribution of the form ![]() ![]() | |
double | exponential_rand (std::vector< double > ¶m, std::mt19937 &_engine) |
Generates a random real number following an exponential distribution of the form ![]() ![]() | |
double | exponential_m1 (double param) |
Returns the first moment of an exponential distribution of the form ![]() ![]() | |
double | gamma_rand (std::vector< double > ¶m, std::mt19937 &_engine) |
Generates a random real number following a gamma distribution of the form ![]() ![]() | |
double | gamma_m1 (std::vector< double > param) |
Returns the first moment of a gamma distribution of the form ![]() ![]() | |
Functions related to random number generators for various distributions.