|
| MTRand (uint32_t oneSeed) |
|
| MTRand (uint32_t *const bigSeed, uint32_t seedLength=N) |
|
BGFLOAT | rand () |
|
BGFLOAT | rand (BGFLOAT n) |
|
BGFLOAT | randExc () |
|
BGFLOAT | randExc (BGFLOAT n) |
|
BGFLOAT | randDblExc () |
|
BGFLOAT | randDblExc (BGFLOAT n) |
|
uint32_t | randInt () |
|
uint32_t | randInt (uint32_t n) |
|
virtual BGFLOAT | operator() () |
|
BGFLOAT | inRange (BGFLOAT min, BGFLOAT max) |
|
BGFLOAT | rand53 () |
|
BGFLOAT | randNorm (BGFLOAT mean=0.0, BGFLOAT variance=0.0) |
|
virtual void | seed (uint32_t oneSeed) |
|
void | seed (uint32_t *const bigSeed, uint32_t seedLength=N) |
|
virtual void | seed () |
|
void | save (uint32_t *saveArray) const |
|
void | load (uint32_t *const loadArray) |
|
template<class Archive > |
void | serialize (Archive &archive) |
| Cereal serialization method.
|
|
|
static const int | N = 624 |
|
static const int | SAVE = N + 1 |
|
|
void | initialize (uint32_t oneSeed) |
|
void | reload () |
|
uint32_t | hiBit (uint32_t u) const |
|
uint32_t | loBit (uint32_t u) const |
|
uint32_t | loBits (uint32_t u) const |
|
uint32_t | mixBits (uint32_t u, uint32_t v) const |
|
uint32_t | twist (uint32_t m, uint32_t s0, uint32_t s1) const |
|
|
static uint32_t | hash (time_t t, clock_t c) |
|
Definition at line 88 of file MTRand.h.
◆ MTRand() [1/3]
MTRand::MTRand |
( |
uint32_t | oneSeed | ) |
|
◆ MTRand() [2/3]
MTRand::MTRand |
( |
uint32_t *const | bigSeed, |
|
|
uint32_t | seedLength = N ) |
◆ MTRand() [3/3]
◆ Create()
static MTRand * MTRand::Create |
( |
| ) |
|
|
inlinestatic |
Creates an instance of the class.
- Returns
- Reference to the instance of the class.
Definition at line 97 of file MTRand.h.
◆ hash()
uint32_t MTRand::hash |
( |
time_t | t, |
|
|
clock_t | c ) |
|
staticprotected |
◆ hiBit()
uint32_t MTRand::hiBit |
( |
uint32_t | u | ) |
const |
|
protected |
◆ initialize()
void MTRand::initialize |
( |
uint32_t | oneSeed | ) |
|
|
protected |
◆ inRange()
BGFLOAT MTRand::inRange |
( |
BGFLOAT | min, |
|
|
BGFLOAT | max ) |
◆ load()
void MTRand::load |
( |
uint32_t *const | loadArray | ) |
|
◆ loBit()
uint32_t MTRand::loBit |
( |
uint32_t | u | ) |
const |
|
protected |
◆ loBits()
uint32_t MTRand::loBits |
( |
uint32_t | u | ) |
const |
|
protected |
◆ mixBits()
uint32_t MTRand::mixBits |
( |
uint32_t | u, |
|
|
uint32_t | v ) const |
|
protected |
◆ operator()()
BGFLOAT MTRand::operator() |
( |
void | | ) |
|
|
virtual |
◆ rand() [1/2]
◆ rand() [2/2]
BGFLOAT MTRand::rand |
( |
BGFLOAT | n | ) |
|
◆ rand53()
BGFLOAT MTRand::rand53 |
( |
| ) |
|
◆ randDblExc() [1/2]
BGFLOAT MTRand::randDblExc |
( |
| ) |
|
◆ randDblExc() [2/2]
BGFLOAT MTRand::randDblExc |
( |
BGFLOAT | n | ) |
|
◆ randExc() [1/2]
BGFLOAT MTRand::randExc |
( |
| ) |
|
◆ randExc() [2/2]
BGFLOAT MTRand::randExc |
( |
BGFLOAT | n | ) |
|
◆ randInt() [1/2]
uint32_t MTRand::randInt |
( |
| ) |
|
◆ randInt() [2/2]
uint32_t MTRand::randInt |
( |
uint32_t | n | ) |
|
◆ randNorm()
BGFLOAT MTRand::randNorm |
( |
BGFLOAT | mean = 0.0, |
|
|
BGFLOAT | variance = 0.0 ) |
◆ reload()
◆ save()
void MTRand::save |
( |
uint32_t * | saveArray | ) |
const |
◆ seed() [1/3]
◆ seed() [2/3]
void MTRand::seed |
( |
uint32_t *const | bigSeed, |
|
|
uint32_t | seedLength = N ) |
◆ seed() [3/3]
void MTRand::seed |
( |
uint32_t | oneSeed | ) |
|
|
virtual |
◆ serialize()
template<class Archive >
void MTRand::serialize |
( |
Archive & | archive | ) |
|
Cereal serialization method.
Definition at line 171 of file MTRand.h.
◆ twist()
uint32_t MTRand::twist |
( |
uint32_t | m, |
|
|
uint32_t | s0, |
|
|
uint32_t | s1 ) const |
|
protected |
◆ operator<<
std::ostream & operator<< |
( |
std::ostream & | os, |
|
|
const MTRand & | mtrand ) |
|
friend |
◆ operator>>
std::istream & operator>> |
( |
std::istream & | is, |
|
|
MTRand & | mtrand ) |
|
friend |
◆ iNext
◆ left
const int MTRand::M = 397 |
|
staticprotected |
const int MTRand::N = 624 |
|
static |
◆ SAVE
const int MTRand::SAVE = N + 1 |
|
static |
◆ state
uint32_t MTRand::state[N] |
|
protected |
The documentation for this class was generated from the following files: