LTI-Lib latest version v1.9 - last update 10 Apr 2010

lti::randomDistribution Class Reference

Base random number class. More...

#include <ltiRandDist.h>

Inheritance diagram for lti::randomDistribution:
Inheritance graph
[legend]
Collaboration diagram for lti::randomDistribution:
Collaboration graph
[legend]

List of all members.

Classes

class  parameters
 parameters of the random distribution More...

Public Member Functions

 randomDistribution (bool reInit=false)
 randomDistribution (const unsigned int theValue)
virtual ~randomDistribution ()
void init () const
void init (const unsigned int theValue) const
virtual functorclone () const
virtual const char * getTypeName () const
randomDistributioncopy (const randomDistribution &other)

Protected Member Functions

double rand () const

Detailed Description

Base random number class.

You can use an instance of this class to initialize the random number generator.


Constructor & Destructor Documentation

lti::randomDistribution::randomDistribution ( bool  reInit = false  ) 

default constructor.

Initializes the pseudo-random number generator using system time. If reInit is false, the generator is initialized only when instantiating the first randomDistribution object.

Referenced by clone().

lti::randomDistribution::randomDistribution ( const unsigned int  theValue  ) 

this constructor initializes the pseudo-random number generator using the given value

virtual lti::randomDistribution::~randomDistribution (  )  [virtual]

destructor


Member Function Documentation

virtual functor* lti::randomDistribution::clone (  )  const [inline, virtual]
randomDistribution& lti::randomDistribution::copy ( const randomDistribution other  ) 
virtual const char* lti::randomDistribution::getTypeName ( void   )  const [inline, virtual]
void lti::randomDistribution::init ( const unsigned int  theValue  )  const

re-initializes the random number generator using the given value

void lti::randomDistribution::init (  )  const

re-initializes the random number generator using system time

double lti::randomDistribution::rand (  )  const [inline, protected]

This is a wrapper for the rand() function that returns a value between 0.0 (inclusive) and 1.0 (exclusive).


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

Generated on Sat Apr 10 15:28:38 2010 for LTI-Lib by Doxygen 1.6.1