|
Public Types |
| enum | RNGSources { RAW_SEED_SOURCE,
PREDEF_SEED_SOURCE,
HEURISTIC_SEED_SOURCE
} |
Public Member Functions |
| | RNG (const char *name="") |
| | RNG (long seed) |
| void | init () |
| long | seed () |
| void | set_seed (long seed) |
| long | next () |
| double | next_double () |
| | RNG (RNGSources source, int seed=1) |
| void | set_seed (RNGSources source, int seed=1) |
| void | reset_start_stream () |
| void | reset_start_substream () |
| void | reset_next_substream () |
| void | set_antithetic (bool a) |
| void | increased_precis (bool incp) |
| void | set_seed (const unsigned long seed[6]) |
| void | advance_state (long e, long c) |
| void | get_state (unsigned long seed[6]) const |
| void | write_state () const |
| void | write_state_full () const |
| double | rand_u01 () |
| long | rand_int (long i, long j) |
| int | command (int argc, const char *const *argv) |
| int | uniform_positive_int () |
| double | uniform_double () |
| int | random () |
| double | uniform () |
| int | uniform (int k) |
| double | uniform (double r) |
| double | uniform (double a, double b) |
| double | exponential () |
| double | exponential (double r) |
| double | pareto (double scale, double shape) |
| double | paretoII (double scale, double shape) |
| double | normal (double avg, double std) |
| double | lognormal (double avg, double std) |
Static Public Member Functions |
| RNG * | defaultrng () |
| void | set_package_seed (const unsigned long seed[6]) |
Protected Member Functions |
| double | U01 () |
| double | U01d () |
Protected Attributes |
| double | Cg_ [6] |
| double | Bg_ [6] |
| double | Ig_ [6] |
| bool | anti_ |
| bool | inc_prec_ |
| char | name_ [100] |
Static Protected Attributes |
| double | next_seed_ [6] |
| RNG * | default_ = NULL |