DUNE: Uniform Navigational Environment
2019.02.0
|
Thread-safe wrapper for a Generator class.
Use this if the generator is going to be accessed by multiple threads.
Public Member Functions | |
TSGenerator (void) | |
TSGenerator (int32_t seed_value) | |
void | seed (int32_t seed_value) |
int32_t | random (void) |
double | uniform (void) |
Public Member Functions inherited from DUNE::Math::Random::Generator | |
virtual | ~Generator () |
double | uniform (double a, double b) |
double | gaussian (void) |
double | gaussian (double mu, double sigma) |
void | ballU (double radius, double *x, double *y) |
void | ballG (double sigma, double *x, double *y) |
Additional Inherited Members | |
Static Public Member Functions inherited from DUNE::Math::Random::Generator | |
static int32_t | arbitrarySeed (void) |
Static Public Attributes inherited from DUNE::Math::Random::Generator | |
static const int32_t | c_max_random |
|
inline |
|
inline |
|
inlinevirtual |
Generate a 32-bit signed integer, uniformly distributed in [0,c_max_random].
Implements DUNE::Math::Random::Generator.
|
inlinevirtual |
Re-initialize generator with given seed.
value | value for seed. |
Implements DUNE::Math::Random::Generator.
|
inlinevirtual |
Generate double-precision floating point number with uniform distribution in [0,1].
Default implementation returns value of random()/c_max_random.
Reimplemented from DUNE::Math::Random::Generator.