COPASI API
4.40.278
|
#include <Cmt19937.h>
Protected Member Functions | |
Cmt19937HR (unsigned C_INT32 seed) | |
Protected Member Functions inherited from Cmt19937 | |
Cmt19937 (unsigned C_INT32 seed) | |
void | next_state () |
Protected Member Functions inherited from CRandom | |
CRandom () | |
void | setModulus (const unsigned C_INT32 &modulus) |
Friends | |
CRandom * | CRandom::createGenerator (CRandom::Type type, unsigned C_INT32 seed) |
Additional Inherited Members | |
Public Types inherited from CRandom | |
enum | Type { r250 = 0 , mt19937 , mt19937HR , unkown } |
Static Public Member Functions inherited from CRandom | |
static CRandom * | createGenerator (CRandom::Type type=CRandom::mt19937, unsigned C_INT32 seed=0) |
static unsigned C_INT32 | getSystemSeed () |
Static Public Attributes inherited from CRandom | |
static const std::string | TypeName [] |
static const char * | XMLType [] |
Protected Attributes inherited from CRandom | |
C_FLOAT64 | mFloat |
unsigned C_INT32 | mModulus |
C_FLOAT64 | mModulusInv |
C_FLOAT64 | mModulusInv1 |
C_INT32 | mNumberS |
unsigned C_INT32 | mNumberU |
CRandom::Type | mType |
|
protected |
Default/Named constructor. Seeds the random number generator with the given seed.
C_INT32 | seed |
|
virtual |
Produces a uniformly distributed random number in 0 <= x <= 1.
Reimplemented from Cmt19937.
References C_INT32, Cmt19937::getRandomU(), and CRandom::mFloat.
|
virtual |
Produces a uniformly distributed random number in 0 <= x < 1. Note: 0 < x <= 1 may be achieved by 1.0 - getRandomCO().
Reimplemented from Cmt19937.
References C_INT32, Cmt19937::getRandomU(), and CRandom::mFloat.
|
virtual |
Produces a uniformly distributed random number in 0 < x < 1.
Reimplemented from Cmt19937.
References C_INT32, Cmt19937::getRandomU(), and CRandom::mFloat.
|
friend |