ECF 1.5
Public Member Functions | List of all members
Randomizer Class Referenceabstract

Abstract Randomizer class. More...

#include <Randomizer.h>

Inheritance diagram for Randomizer:
SimpleRandomizer

Public Member Functions

virtual int getRandomInteger (int p, int q)=0
 Returns random integer in [p, q]. More...
 
virtual int getRandomInteger (uint p)=0
 Returns radnom integer in [0, p - 1]. More...
 
virtual double getRandomDouble ()=0
 Returns random double. More...
 
virtual void registerParameters (StateP s)
 
virtual bool initialize (StateP s)
 

Detailed Description

Abstract Randomizer class.

Definition at line 11 of file Randomizer.h.

Constructor & Destructor Documentation

◆ Randomizer()

Randomizer::Randomizer ( )
inline

Definition at line 14 of file Randomizer.h.

◆ ~Randomizer()

virtual Randomizer::~Randomizer ( )
inlinevirtual

Definition at line 16 of file Randomizer.h.

Member Function Documentation

◆ getRandomDouble()

virtual double Randomizer::getRandomDouble ( )
pure virtual

Returns random double.

Implemented in SimpleRandomizer.

◆ getRandomInteger() [1/2]

virtual int Randomizer::getRandomInteger ( int  p,
int  q 
)
pure virtual

Returns random integer in [p, q].

Implemented in SimpleRandomizer.

◆ getRandomInteger() [2/2]

virtual int Randomizer::getRandomInteger ( uint  p)
pure virtual

Returns radnom integer in [0, p - 1].

Implemented in SimpleRandomizer.

◆ initialize()

virtual bool Randomizer::initialize ( StateP  s)
inlinevirtual

Reimplemented in SimpleRandomizer.

Definition at line 29 of file Randomizer.h.

◆ registerParameters()

virtual void Randomizer::registerParameters ( StateP  s)
inlinevirtual

Definition at line 27 of file Randomizer.h.


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