bpp-core3
3.0.0
|
This is the interface for the Random Number Generators. More...
#include <Bpp/Numeric/Random/RandomFactory.h>
Public Member Functions | |
RandomFactory () | |
virtual | ~RandomFactory () |
virtual void | setSeed (long seed)=0 |
Set the generator's seed. More... | |
virtual double | drawNumber () const =0 |
Return a random number. More... | |
This is the interface for the Random Number Generators.
A Random Number Generator draw numbers between two end points. Each number is taken from a given statistic distribution.
Definition at line 54 of file RandomFactory.h.
|
inline |
Definition at line 57 of file RandomFactory.h.
|
inlinevirtual |
Definition at line 58 of file RandomFactory.h.
|
pure virtual |
Return a random number.
Implemented in bpp::Uniform01WH, bpp::Uniform01QD, and bpp::Uniform01K.
Referenced by bpp::RandomTools::giveRandomNumberBetweenZeroAndEntry(), bpp::RandomTools::randBeta(), bpp::RandomTools::randGaussian(), and bpp::ContingencyTableGenerator::rcont2().
|
pure virtual |
Set the generator's seed.
Implemented in bpp::Uniform01WH, bpp::Uniform01QD, and bpp::Uniform01K.