bpp-core3  3.0.0
bpp::RandomFactory Class Referenceabstract

This is the interface for the Random Number Generators. More...

#include <Bpp/Numeric/Random/RandomFactory.h>

+ Inheritance diagram for bpp::RandomFactory:

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...
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ RandomFactory()

bpp::RandomFactory::RandomFactory ( )
inline

Definition at line 57 of file RandomFactory.h.

◆ ~RandomFactory()

virtual bpp::RandomFactory::~RandomFactory ( )
inlinevirtual

Definition at line 58 of file RandomFactory.h.

Member Function Documentation

◆ drawNumber()

virtual double bpp::RandomFactory::drawNumber ( ) const
pure virtual

◆ setSeed()

virtual void bpp::RandomFactory::setSeed ( long  seed)
pure virtual

Set the generator's seed.

Implemented in bpp::Uniform01WH, bpp::Uniform01QD, and bpp::Uniform01K.


The documentation for this class was generated from the following file: