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

lti::continuousRandomDistribution Class Reference

Base random number class. More...

#include <ltiContinuousRandDist.h>

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

List of all members.

Classes

class  parameters
 parameters of the random distribution More...

Public Member Functions

 continuousRandomDistribution (bool reInit=false)
 continuousRandomDistribution (const unsigned int theValue)
virtual ~continuousRandomDistribution ()
virtual double draw () const
template<class T >
bool apply (T &theObject) const
virtual functorclone () const
virtual const char * getTypeName () const
continuousRandomDistributioncopy (const continuousRandomDistribution &other)

Detailed Description

Base random number class.


Constructor & Destructor Documentation

lti::continuousRandomDistribution::continuousRandomDistribution ( 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 continuousRandomDistribution object.

Referenced by clone().

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

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

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

destructor


Member Function Documentation

template<class T >
bool lti::continuousRandomDistribution::apply ( T &  theObject  )  const [inline]

draws a number from the specified distribution using the virtual function draw().

References draw().

virtual functor* lti::continuousRandomDistribution::clone (  )  const [inline, virtual]
continuousRandomDistribution& lti::continuousRandomDistribution::copy ( const continuousRandomDistribution other  ) 
virtual double lti::continuousRandomDistribution::draw (  )  const [inline, virtual]

draws a number from the distribution.

For this class the values are distributed uniformly in [0;1). This method always (for any distribution) returns a value between 0.0 (inclusive) and 1.0 (exclusive).

Reimplemented in lti::exponentialDistribution, lti::gammaDistribution, lti::gaussianDistribution, lti::multivariateGaussian, lti::poissonDistribution, and lti::uniformDistribution.

Referenced by apply(), and lti::paretoFront::rand().

virtual const char* lti::continuousRandomDistribution::getTypeName ( void   )  const [inline, virtual]

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

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