latest version v1.9 - last update 10 Apr 2010 |
Gamma distributed random number class. More...
#include <ltiGammaDist.h>
Classes | |
class | parameters |
parameters for the gamma distribution More... | |
Public Member Functions | |
gammaDistribution () | |
gammaDistribution (const parameters &theParams) | |
gammaDistribution (const int theOrder) | |
virtual | ~gammaDistribution () |
const parameters & | getParameters () const |
virtual double | draw () const |
virtual functor * | clone () const |
virtual const char * | getTypeName () const |
Gamma distributed random number class.
lti::gammaDistribution::gammaDistribution | ( | ) | [inline] |
default constructor.
Referenced by clone().
lti::gammaDistribution::gammaDistribution | ( | const parameters & | theParams | ) |
constructor, sets the parameters
lti::gammaDistribution::gammaDistribution | ( | const int | theOrder | ) |
constructor, sets order theOrder
virtual lti::gammaDistribution::~gammaDistribution | ( | ) | [inline, virtual] |
destructor
virtual functor* lti::gammaDistribution::clone | ( | ) | const [inline, virtual] |
returns a pointer to a clone of the functor.
Reimplemented from lti::continuousRandomDistribution.
References gammaDistribution().
virtual double lti::gammaDistribution::draw | ( | ) | const [virtual] |
gamma distribution.
Returns a deviate distributed as a gamma distribution of the given integer order, i.e. a waiting time to the (theOrder)th event in a Poisson process of unit mean.
Reimplemented from lti::continuousRandomDistribution.
const parameters& lti::gammaDistribution::getParameters | ( | ) | const |
returns the current parameters.
Reimplemented from lti::functor.
virtual const char* lti::gammaDistribution::getTypeName | ( | void | ) | const [inline, virtual] |
returns the name of this type
Reimplemented from lti::continuousRandomDistribution.