|
CellModules
|
Functions | |
| static std::uniform_real_distribution< double > | probaGen (0., 1.) |
| @ignore More... | |
| static MecaCell::Config::random_engine_t & | engine () |
| 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 | getAsynchronousAge (double maxAge=1.0) |
| Generates an age for an asynchronous exponentially growing cell population. 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 |
Definition at line 18 of file RandomManager.hpp.
|
inlinestatic |
Generates an age for an asynchronous exponentially growing cell population.
The returned age follows the stable age distribution on [0, maxAge]. With the default value, the age is normalized on [0, 1].
| maxAge | The maximum age, typically the cell-cycle duration. |
Definition at line 91 of file RandomManager.hpp.
|
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 105 of file RandomManager.hpp.
|
inlinestatic |
Generates a random double in an exponential distribution.
| lambda | The rate parameter of the distribution. |
Definition at line 77 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 116 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 134 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 146 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 66 of file RandomManager.hpp.
|
inlinestatic |
Generates a random probability between 0 and 1.
Definition at line 33 of file RandomManager.hpp.
|
inlinestatic |
Generates a random double in a uniform distribution.
| min | The minimum value. |
| max | The maximum value. |
Definition at line 42 of file RandomManager.hpp.
|
inlinestatic |
Generates a random integer in a uniform distribution.
| min | The minimum value. |
| max | The maximum value. |
Definition at line 54 of file RandomManager.hpp.
|
inlinestatic |
Initializes the random seed.
| seed | The seed value. Defaults to the current clock value. |
Definition at line 26 of file RandomManager.hpp.
|
static |
@ignore