ECF 1.5
Public Member Functions | List of all members
SimpleRandomizer Class Reference

A simple randomizer that uses in-built random number generator. More...

#include <SimpleRandomizer.h>

Inheritance diagram for SimpleRandomizer:
Randomizer

Public Member Functions

 SimpleRandomizer (uint seed=0)
 
int getRandomInteger (int p, int q)
 Returns random integer in [p, q]. More...
 
int getRandomInteger (uint size)
 Returns radnom integer in [0, p - 1]. More...
 
double getRandomDouble ()
 Returns random double. More...
 
void registerParameters (StateP s)
 
bool initialize (StateP s)
 
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

A simple randomizer that uses in-built random number generator.

Definition at line 10 of file SimpleRandomizer.h.

Constructor & Destructor Documentation

◆ SimpleRandomizer()

SimpleRandomizer::SimpleRandomizer ( uint  seed = 0)

Definition at line 6 of file SimpleRandomizer.cpp.

Member Function Documentation

◆ getRandomDouble()

double SimpleRandomizer::getRandomDouble ( )
virtual

Returns random double.

Implements Randomizer.

Definition at line 27 of file SimpleRandomizer.cpp.

◆ getRandomInteger() [1/2]

int SimpleRandomizer::getRandomInteger ( int  p,
int  q 
)
virtual

Returns random integer in [p, q].

Implements Randomizer.

Definition at line 15 of file SimpleRandomizer.cpp.

◆ getRandomInteger() [2/2]

int SimpleRandomizer::getRandomInteger ( uint  p)
virtual

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

Implements Randomizer.

Definition at line 21 of file SimpleRandomizer.cpp.

◆ initialize()

bool SimpleRandomizer::initialize ( StateP  s)
virtual

Initialize the randomizer with the seed parameter from the Registry.

Reimplemented from Randomizer.

Definition at line 40 of file SimpleRandomizer.cpp.

◆ registerParameters()

void SimpleRandomizer::registerParameters ( StateP  s)
virtual

Reimplemented from Randomizer.

Definition at line 33 of file SimpleRandomizer.cpp.


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