#include <RandomFunctions.h>
RandomFunctions class implements functions to generate random variates.
-
Truncated Gaussian
-
Custom Probability Density Function
◆ RandomFunctions()
RandomFunctions::RandomFunctions |
( |
Random * |
random | ) |
|
◆ ~RandomFunctions()
RandomFunctions::~RandomFunctions |
( |
| ) |
|
◆ customPDF()
double RandomFunctions::customPDF |
( |
double |
xMin, |
|
|
double |
xMax, |
|
|
double |
step, |
|
|
const vector< double > & |
values |
|
) |
| |
Returns the value of a random variate generated with a custom pdf given.
- Parameters
-
xMin | Min value of x. |
xMax | Max value of x. |
step | Increment in x between xMin and xMax. |
values | Vector with the shape of the custom pdf. |
- Returns
- Value of the cumulative density function.
◆ truncatedNormal()
double RandomFunctions::truncatedNormal |
( |
double |
mu, |
|
|
double |
sigma, |
|
|
double |
xMin, |
|
|
double |
xMax |
|
) |
| |
Returns the value of a random variate generated with a truncated gaussian pdf.
- Parameters
-
mu | Mean of the gaussian. |
sigma | Std. deviation of the gaussian. |
xMin | Min value of x. |
xMax | Max value of x. |
- Returns
- Value of the random variate.
The documentation for this class was generated from the following file: