|
last update 20 Sep 2009 |
|
#include <cvrRandomDistribution.h>


Public Member Functions | |
| rndMersenneTwister () | |
| virtual | ~rndMersenneTwister () |
| virtual uint32 | draw () |
| virtual void | setSeed (const uint32 seed) |
| uint32 | max () const |
| virtual bool | write (ioHandler &handler, const bool complete=true) const |
| virtual bool | read (ioHandler &handler, const bool complete=true) |
Reference: M. Matsumoto and T. Nishimura, "Mersenne Twister: A 623-Dimensionally Equidistributed Uniform Pseudo-Random Number Generator", ACM Transactions on Modeling and Computer Simulation, Vol. 8, No. 1, January 1998, pp 3-30.
| cvr::randomDistribution::randomDistribution::rndMersenneTwister::rndMersenneTwister | ( | ) |
Constructor.
| virtual cvr::randomDistribution::randomDistribution::rndMersenneTwister::~rndMersenneTwister | ( | ) | [virtual] |
Destructor.
| virtual uint32 cvr::randomDistribution::randomDistribution::rndMersenneTwister::draw | ( | ) | [virtual] |
| uint32 cvr::randomDistribution::randomDistribution::rndMersenneTwister::max | ( | ) | const [virtual] |
Return the maximal obtainable number (inclusive).
Implements cvr::randomDistribution::randomDistribution::rndBase.
| virtual bool cvr::randomDistribution::randomDistribution::rndMersenneTwister::read | ( | ioHandler & | handler, | |
| const bool | complete = true | |||
| ) | [virtual] |
Read the parameters from the given ioHandler.
| handler | the ioHandler to be used | |
| complete | if true (the default) the enclosing begin/end will be also written, otherwise only the data block will be written. |
Implements cvr::randomDistribution::randomDistribution::rndBase.
| virtual void cvr::randomDistribution::randomDistribution::rndMersenneTwister::setSeed | ( | const uint32 | seed | ) | [virtual] |
| virtual bool cvr::randomDistribution::randomDistribution::rndMersenneTwister::write | ( | ioHandler & | handler, | |
| const bool | complete = true | |||
| ) | const [virtual] |
Write the parameters in the given ioHandler.
| handler | the ioHandler to be used | |
| complete | if true (the default) the enclosing begin/end will be also written, otherwise only the data block will be written. |
Implements cvr::randomDistribution::randomDistribution::rndBase.