ssmkit
master-68aed98
|
A singleton wrapper of an instance of random generator. More...
Public Member Functions | |
CoreGenerator & | getGenerator () |
Returns reference to the core generator. More... | |
template<class TSeed > | |
void | setSeed (TSeed seed) |
Sets the seed for the core generator. More... | |
void | setRandomSeed () |
Sets a random seed for core generator. More... | |
Static Public Member Functions | |
static Generator & | get () |
Returns a reference to singleton instance. More... | |
A singleton wrapper of an instance of random generator.
This is used in the rendom() methods of distribution classes.
Definition at line 20 of file generator.hpp.
|
inlinestatic |
Returns a reference to singleton instance.
Definition at line 38 of file generator.hpp.
Referenced by Systematic< Criterion >::generateOrderedNumbers(), Categorical::random(), Gaussian::random(), ssmkit::random::setRandomSeed(), and ssmkit::random::setSeed().
|
inline |
Returns reference to the core generator.
Definition at line 44 of file generator.hpp.
|
inline |
Sets the seed for the core generator.
Definition at line 47 of file generator.hpp.
Referenced by ssmkit::random::setSeed().
|
inline |
Sets a random seed for core generator.
Definition at line 49 of file generator.hpp.
Referenced by ssmkit::random::setRandomSeed().