latest version v1.9 - last update 10 Apr 2010 |
Normal distributed random number class. More...
#include <ltiGaussDist.h>
Classes | |
class | parameters |
parameters for gaussian distribution More... | |
Public Member Functions | |
gaussianDistribution (const double mean=0.0, const double stdDeviation=1.0) | |
gaussianDistribution (const parameters &theParams) | |
virtual | ~gaussianDistribution () |
const parameters & | getParameters () const |
virtual double | draw () const |
double | draw (const double &average, const double &stdDeviation) const |
bool | apply (const double &average, const double &stdDeviation, double &result) const |
gaussianDistribution & | copy (const gaussianDistribution &other) |
virtual functor * | clone () const |
virtual const char * | getTypeName () const |
Normal distributed random number class.
lti::gaussianDistribution::gaussianDistribution | ( | const double | mean = 0.0 , |
|
const double | stdDeviation = 1.0 | |||
) |
lti::gaussianDistribution::gaussianDistribution | ( | const parameters & | theParams | ) |
constructor, sets the parameters
virtual lti::gaussianDistribution::~gaussianDistribution | ( | ) | [inline, virtual] |
destructor
bool lti::gaussianDistribution::apply | ( | const double & | average, | |
const double & | stdDeviation, | |||
double & | result | |||
) | const |
virtual functor* lti::gaussianDistribution::clone | ( | ) | const [inline, virtual] |
returns a pointer to a clone of the functor.
Reimplemented from lti::continuousRandomDistribution.
References gaussianDistribution().
gaussianDistribution& lti::gaussianDistribution::copy | ( | const gaussianDistribution & | other | ) |
copy data of "other" functor.
Reimplemented from lti::continuousRandomDistribution.
double lti::gaussianDistribution::draw | ( | const double & | average, | |
const double & | stdDeviation | |||
) | const |
virtual double lti::gaussianDistribution::draw | ( | ) | const [virtual] |
draws a number from the distribution.
Reimplemented from lti::continuousRandomDistribution.
const parameters& lti::gaussianDistribution::getParameters | ( | ) | const |
returns the current parameters.
Reimplemented from lti::functor.
virtual const char* lti::gaussianDistribution::getTypeName | ( | void | ) | const [inline, virtual] |
returns the name of this type
Reimplemented from lti::continuousRandomDistribution.