latest version v1.9 - last update 10 Apr 2010 |
Poisson distributed random number class. More...
#include <ltiPoissonDist.h>
Classes | |
class | parameters |
parameters class for the poisson distribution More... | |
Public Member Functions | |
poissonDistribution () | |
poissonDistribution (const double mean) | |
poissonDistribution (const parameters &theParams) | |
virtual | ~poissonDistribution () |
const parameters & | getParameters () const |
virtual double | draw () const |
poissonDistribution & | copy (const poissonDistribution &other) |
virtual functor * | clone () const |
virtual const char * | getTypeName () const |
Poisson distributed random number class.
lti::poissonDistribution::poissonDistribution | ( | ) | [inline] |
default constructor.
Referenced by clone().
lti::poissonDistribution::poissonDistribution | ( | const double | mean | ) |
constructor, sets mean.
lti::poissonDistribution::poissonDistribution | ( | const parameters & | theParams | ) |
constructor, sets the parameters.
virtual lti::poissonDistribution::~poissonDistribution | ( | ) | [inline, virtual] |
destructor
virtual functor* lti::poissonDistribution::clone | ( | ) | const [inline, virtual] |
returns a pointer to a clone of the functor.
Reimplemented from lti::continuousRandomDistribution.
References poissonDistribution().
poissonDistribution& lti::poissonDistribution::copy | ( | const poissonDistribution & | other | ) |
copy data of "other" functor.
Reimplemented from lti::continuousRandomDistribution.
virtual double lti::poissonDistribution::draw | ( | ) | const [virtual] |
returns as a floating-point number an integer value that is a random deviate drawn from a Poisson distribution of the given mean.
Reimplemented from lti::continuousRandomDistribution.
const parameters& lti::poissonDistribution::getParameters | ( | ) | const |
returns the current parameters.
Reimplemented from lti::functor.
virtual const char* lti::poissonDistribution::getTypeName | ( | void | ) | const [inline, virtual] |
returns the name of this type
Reimplemented from lti::continuousRandomDistribution.