DUNE: Uniform Navigational Environment
2.5.1
|
Feedback shift register generator with 256-byte table.
This has the same behavior as GLIBC2's random() with default settings.
Public Member Functions | |
FSR256 (void) | |
FSR256 (int32_t seed) | |
~FSR256 () | |
int32_t | random (void) |
void | seed (int32_t value) |
Public Member Functions inherited from DUNE::Math::Random::Generator | |
virtual | ~Generator () |
virtual double | uniform (void) |
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 |
DUNE::Math::Random::FSR256::FSR256 | ( | void | ) |
References DUNE::Math::Random::Generator::arbitrarySeed(), and seed().
DUNE::Math::Random::FSR256::FSR256 | ( | int32_t | seed | ) |
References seed().
DUNE::Math::Random::FSR256::~FSR256 | ( | void | ) |
|
virtual |
Generate a 32-bit signed integer, uniformly distributed in [0,c_max_random].
Implements DUNE::Math::Random::Generator.
Referenced by seed().
|
virtual |
Re-initialize generator with given seed.
value | value for seed. |
Implements DUNE::Math::Random::Generator.
References i, random(), and table.
Referenced by FSR256().
int DUNE::Math::Random::FSR256::j |
Referenced by random().