#include <BinomialRng.h>
Public Member Functions | |
BinomialRng () | |
void | setN (double n) |
double | getN () const |
void | setP (double p) |
double | getP () const |
virtual void | vReinit (const Eref &e, ProcPtr p) |
Static Public Member Functions | |
static const Cinfo * | initCinfo () |
BinomialRng::BinomialRng | ( | ) |
double BinomialRng::getN | ( | ) | const |
Returns parameter n.
Referenced by initCinfo().
double BinomialRng::getP | ( | ) | const |
returns parameter p.
Referenced by initCinfo().
const Cinfo * BinomialRng::initCinfo | ( | ) | [static] |
Reimplemented from RandGenerator.
References getN(), getP(), RandGenerator::initCinfo(), setN(), and setP().
void BinomialRng::setN | ( | double | value | ) |
Set parameter n ( number of trials for a two-outcome experiment). This must be set before the actual generator is instantiated.
References RandGenerator::rng_.
Referenced by initCinfo().
void BinomialRng::setP | ( | double | p | ) |
Set parameter p ( the probability of the outcome of interest ). This must be set before the actual generator is instantiated.
References RandGenerator::rng_.
Referenced by initCinfo().
reports error if one or more of the parameters are not set.
Reimplemented from RandGenerator.
References RandGenerator::rng_.