#include <PoissonRng.h>
Public Member Functions | |
PoissonRng () | |
virtual | ~PoissonRng () |
void | setMean (double mean) |
virtual void | vReinit (const Eref &e, ProcPtr p) |
Static Public Member Functions | |
static const Cinfo * | initCinfo () |
PoissonRng::PoissonRng | ( | ) |
virtual PoissonRng::~PoissonRng | ( | ) | [inline, virtual] |
const Cinfo * PoissonRng::initCinfo | ( | ) | [static] |
Reimplemented from RandGenerator.
References RandGenerator::getMean(), RandGenerator::initCinfo(), and setMean().
void PoissonRng::setMean | ( | double | mean | ) |
Sets the mean. Since poisson distribution is defined in terms of the rate parameter or the mean, it is mandatory to set this before using the generator.
References RandGenerator::rng_, and Poisson::setMean().
Referenced by initCinfo().
reports error in case the parameter mean has not been set.
Reimplemented from RandGenerator.
References RandGenerator::rng_.