CellModules
|
Functions | |
static std::uniform_real_distribution< double > | probaGen (0., 1.) |
@ignore More... | |
static void | initRandomSeed (int seed=clock()) |
Initializes the random seed. More... | |
static double | getProba () |
Generates a random probability between 0 and 1. More... | |
static double | getUniformDouble (double min, double max) |
Generates a random double in a uniform distribution. More... | |
static int | getUniformInt (int min, int max) |
Generates a random integer in a uniform distribution. More... | |
static double | getNormalDouble (double mean, double var) |
Generates a random double in a normal distribution. More... | |
static double | getExponentialDouble (double lambda) |
Generates a random double in an exponential distribution. More... | |
static double | getBoundedNormalDouble (double mean, double bound) |
Generates a random double in a bounded normal distribution. More... | |
static double | getLinearDouble (std::vector< std::pair< double, double > > values) |
Generates a random double in a piecewise linear distribution. More... | |
static double | getLogNormalDouble (double mu, double sigma2) |
Generates a random double in a log-normal distribution. More... | |
static double | getLogNormalDoubleMeanStd (double mean, double std) |
Generates a random double in a log-normal distribution using mean and standard deviation. More... | |
|
inlinestatic |
Generates a random double in a bounded normal distribution.
mean | The mean of the distribution. |
bound | The bound of the distribution. |
Definition at line 84 of file RandomManager.hpp.
|
inlinestatic |
Generates a random double in an exponential distribution.
lambda | The rate parameter of the distribution. |
Definition at line 72 of file RandomManager.hpp.
|
inlinestatic |
Generates a random double in a piecewise linear distribution.
values | A vector of pairs representing the intervals and weights. |
Definition at line 95 of file RandomManager.hpp.
|
inlinestatic |
Generates a random double in a log-normal distribution.
mu | The mean of the underlying normal distribution. |
sigma2 | The variance of the underlying normal distribution. |
Definition at line 113 of file RandomManager.hpp.
|
inlinestatic |
Generates a random double in a log-normal distribution using mean and standard deviation.
mean | The mean of the distribution. |
std | The standard deviation of the distribution. |
Definition at line 125 of file RandomManager.hpp.
|
inlinestatic |
Generates a random double in a normal distribution.
mean | The mean of the distribution. |
var | The variance of the distribution. |
Definition at line 61 of file RandomManager.hpp.
|
inlinestatic |
Generates a random probability between 0 and 1.
Definition at line 28 of file RandomManager.hpp.
|
inlinestatic |
Generates a random double in a uniform distribution.
min | The minimum value. |
max | The maximum value. |
Definition at line 37 of file RandomManager.hpp.
|
inlinestatic |
Generates a random integer in a uniform distribution.
min | The minimum value. |
max | The maximum value. |
Definition at line 49 of file RandomManager.hpp.
|
inlinestatic |
Initializes the random seed.
seed | The seed value. Defaults to the current clock value. |
Definition at line 21 of file RandomManager.hpp.
|
static |
@ignore