class TMRandomGenerator

Base template class for random generators. More...

Definition#include <F2_random.h>
Template formTMRandomGenerator<class IUniformRandomGenerator>
List of all Methods
Annotated List
Files
Globals
Hierarchy
Index

Public Methods

Protected Members


Detailed Description

TMRandomGenerator Template for random generators Template is instantiated with a class implementing the ITUniformRandomGenerator specification. The base class is in fact a copy of the undelying uniform random generator. However, descendants may provide further distributions (e.g. a Gaussian) based on the uniform generator (e.g. by a look-up table). The template delivers fast inline functions on the one side and slower virtual functions to allow inheritance.

 TMRandomGenerator ()

TMRandomGenerator

 TMRandomGenerator (char* seed_arg)

TMRandomGenerator

 TMRandomGenerator (TMLookUpTable<TFloat>& dLUT_arg)

TMRandomGenerator

 TMRandomGenerator ( char* seed_arg, TMLookUpTable<TFloat>& dLUT_arg )

TMRandomGenerator

 TMRandomGenerator ( const TMRandomGenerator & copy )

TMRandomGenerator

 ~TMRandomGenerator (void)

~TMRandomGenerator

void  operator= ( const TMRandomGenerator & copy )

operator=

[virtual]

size_t  getSeedSize (void)

getSeedSize

[virtual]

char*  getSeed (void)

getSeed

[virtual]

char*  getSeed (char* seed1)

getSeed

[virtual]

void  randomize (void)

randomize

[virtual]

void  setSeed (char* seed1)

setSeed

[virtual]

void  setSeed ( ITUniformRandomGenerator& rg )

setSeed

[virtual]

void  setSeed ( TMRandomGenerator& rg )

setSeed

[virtual]

inline TFloat  rand01 (void)

rand01

inline TFloat  rand01 (TFloat exp)

rand01

inline TFloat  rand01 (TFloat exp, TFloat sd)

rand01

inline TFloat  rand01 ( TFloat exp, TFloat sd, TFloat min, TFloat max )

rand01

inline TFloat  rand01 ( TFloat exp, TFloat sd, TFloat min, TFloat max, TInt softLimit, TInt hardLimit )

rand01

inline TInt  rand01 (TInt min, TInt max)

rand01

void  setDefaultLUT (TMLookUpTable<TFloat>& lut)

setDefaultLUT

inline TFloat  randLUT ()

randLUT

inline TFloat  randLUT (TFloat offset)

randLUT

inline TFloat  randLUT (TFloat offset, TFloat factor)

randLUT

inline TFloat  randLUT ( TFloat offset, TFloat factor, TFloat min, TFloat max )

randLUT

inline TFloat  randLUT ( TFloat offset, TFloat factor, TFloat min, TFloat max, TInt softLimit, TInt hardLimit )

randLUT

inline TFloat  randLUT (TMLookUpTable<TFloat>& tab)

randLUT

inline TFloat  randLUT ( TMLookUpTable<TFloat>& tab, TFloat offset )

randLUT

inline TFloat  randLUT ( TMLookUpTable<TFloat>& tab, TFloat offset, TFloat factor )

randLUT

inline TFloat  randLUT ( TMLookUpTable<TFloat>& tab, TFloat offset, TFloat factor, TFloat min, TFloat max )

randLUT

inline TFloat  randLUT ( TMLookUpTable<TFloat>& tab, TFloat offset, TFloat factor, TFloat min, TFloat max, TInt softLimit, TInt hardLimit )

randLUT

TFloat  vrand (void)

vrand

[virtual]

inline TFloat  rand (void)

rand

inline TFloat  rand (TFloat exp)

rand

inline TFloat  rand (TFloat exp, TFloat sd)

rand

inline TFloat  rand ( TFloat exp, TFloat sd, TFloat min, TFloat max )

rand

inline TFloat  rand ( TFloat exp, TFloat sd, TFloat min, TFloat max, TInt softLimit, TInt hardLimit )

rand

inline TInt  rand (TInt min, TInt max)

rand

inline TFloat  getExpectation (void)

getExpectation

inline TFloat  getStandardDeviation (void)

getStandardDeviation

IUniformRandomGenerator urg

urg

[protected]

TFloat expectation

expectation

[protected]

TFloat standardDeviation

standardDeviation

[protected]

TMLookUpTable<TFloat>* defaultLUT

defaultLUT

[protected]