#include <RngStream.h>
Public Member Functions | |
RngStream (const char *name="") | |
void | ResetStartStream () |
void | ResetStartSubstream () |
void | ResetNextSubstream () |
void | SetAntithetic (bool a) |
void | IncreasedPrecis (bool incp) |
bool | SetSeed (const unsigned long seed[6]) |
void | AdvanceState (long e, long c) |
void | GetState (unsigned long seed[6]) const |
void | WriteState () const |
void | WriteStateFull () const |
double | RandU01 () |
int | RandInt (int i, int j) |
Static Public Member Functions | |
static bool | SetPackageSeed (const unsigned long seed[6]) |
Private Member Functions | |
double | U01 () |
double | U01d () |
Private Attributes | |
double | Cg [6] |
double | Bg [6] |
double | Ig [6] |
bool | anti |
bool | incPrec |
std::string | name |
Static Private Attributes | |
static double | nextSeed [6] |
RngStream::RngStream | ( | const char * | name = "" | ) |
void RngStream::AdvanceState | ( | long | e, |
long | c | ||
) |
void RngStream::GetState | ( | unsigned long | seed[6] | ) | const |
Referenced by World::print_checkpoints().
void RngStream::IncreasedPrecis | ( | bool | incp | ) |
int RngStream::RandInt | ( | int | i, |
int | j | ||
) |
double RngStream::RandU01 | ( | ) |
Referenced by World::choose_new_kinetic_state(), Blob::get_RandU01(), and RandInt().
void RngStream::ResetNextSubstream | ( | ) |
void RngStream::ResetStartStream | ( | ) |
void RngStream::ResetStartSubstream | ( | ) |
void RngStream::SetAntithetic | ( | bool | a | ) |
|
static |
Referenced by World::init().
bool RngStream::SetSeed | ( | const unsigned long | seed[6] | ) |
Referenced by World::init().
|
private |
Referenced by RandU01().
|
private |
Referenced by RandU01().
void RngStream::WriteState | ( | ) | const |
Referenced by World::init().
void RngStream::WriteStateFull | ( | ) | const |
|
private |
Referenced by RngStream(), SetAntithetic(), and WriteStateFull().
|
private |
Referenced by ResetNextSubstream(), ResetStartStream(), ResetStartSubstream(), RngStream(), SetSeed(), and WriteStateFull().
|
private |
Referenced by AdvanceState(), GetState(), ResetNextSubstream(), ResetStartStream(), ResetStartSubstream(), RngStream(), SetSeed(), WriteState(), and WriteStateFull().
|
private |
Referenced by ResetStartStream(), RngStream(), SetSeed(), and WriteStateFull().
|
private |
Referenced by IncreasedPrecis(), RandU01(), RngStream(), and WriteStateFull().
|
private |
Referenced by WriteState(), and WriteStateFull().
|
staticprivate |
Referenced by RngStream(), SetPackageSeed(), and U01d().