Pseudorandom number generators. More...
#include <time.h>
#include <limits.h>
#include <float.h>
#include <math.h>
#include <vector>
Go to the source code of this file.
Classes | |
class | ibis::discretePoisson |
Discrete random number with Poisson distribution exp(-x/lambda). More... | |
class | ibis::discretePoisson1 |
Specialized version of the Poisson distribution exp(-x). More... | |
class | ibis::discreteZipf |
Discrete Zipf distribution. More... | |
class | ibis::discreteZipf1 |
A specialized case of the Zipf distribution f(x) = 1/(1+x). More... | |
class | ibis::discreteZipf2 |
A specialized version of the Zipf distribution f(x) = 1/(1+x)^2. More... | |
class | ibis::MersenneTwister |
Mersenne Twister. More... | |
class | ibis::randomGaussian |
Continuous Gaussian distribution. More... | |
class | ibis::randomPoisson |
Continuous Poisson distribution. More... | |
class | ibis::randomZipf |
Continuous Zipf distribution. More... | |
class | ibis::uniformRandomNumber |
A functor to generate uniform random number in the range [0, 1). More... | |
Namespaces | |
ibis | |
The current implementation of FastBit is code named IBIS; most data structures and functions are in the name space ibis. | |
Pseudorandom number generators.
MersenneTwister: A C++ class that use the similar interface as java.util.Random. The basic algorithm is the Mersenne Twister by M. Matsumoto and T. Nishimura http://dx.doi.org/10.1145/272991.272995.
MersenneTwister also include a function called nextZipf to generate Zipf distributed random numbers (floats).
This file also contains additional classes that generate discrete Zipf and Poisson distributions (named discreteZipf and discretePoisson)