|
BPMN-OS
BPMN for optimization and simulation
|
Factory for random distribution functions in LIMEX expressions. More...
Registers random functions (uniform, normal, etc.) with a LIMEX handle. Before evaluating expressions containing random functions, setCurrentRng() must be called to provide the RNG context.
Definition at line 31 of file RandomDistributionFactory.h.
#include <RandomDistributionFactory.h>
Public Member Functions | |
| void | registerFunctions (LIMEX::Handle< double > &handle) |
| Register all random distribution functions with the given LIMEX handle. | |
| void | setCurrentRng (std::mt19937 *rng) |
| Set the current RNG to use for expression evaluation. | |
| std::mt19937 * | getCurrentRng () const |
| Get the current RNG. | |
|
inline |
Definition at line 61 of file RandomDistributionFactory.h.
| void RandomDistributionFactory::registerFunctions | ( | LIMEX::Handle< double > & | handle | ) |
Supported functions:
Definition at line 89 of file RandomDistributionFactory.cpp.
|
inline |
Must be called before evaluating any expression containing random functions.
| rng | Pointer to the RNG to use, or nullptr to clear. |
Definition at line 56 of file RandomDistributionFactory.h.