#include <GammaRng.h>
Public Member Functions | |
GammaRng () | |
virtual | ~GammaRng () |
double | getAlpha () const |
double | getTheta () const |
void | setAlpha (double alpha) |
void | setTheta (double theta) |
virtual void | vReinit (const Eref &e, ProcPtr p) |
Static Public Member Functions | |
static const Cinfo * | initCinfo () |
This is MOOSE wrapper for Gammaly distributed random number generator class, Gamma. The default
GammaRng::GammaRng | ( | ) |
virtual GammaRng::~GammaRng | ( | ) | [inline, virtual] |
double GammaRng::getAlpha | ( | ) | const |
returns the shape parameter.
Referenced by initCinfo().
double GammaRng::getTheta | ( | ) | const |
returns the scale parameter.
Referenced by initCinfo().
const Cinfo * GammaRng::initCinfo | ( | ) | [static] |
Reimplemented from RandGenerator.
References getAlpha(), getTheta(), RandGenerator::initCinfo(), setAlpha(), and setTheta().
void GammaRng::setAlpha | ( | double | alpha | ) |
Sets parameter alpha. Also known as the shape parameter.
References Gamma::getAlpha(), and RandGenerator::rng_.
Referenced by initCinfo().
void GammaRng::setTheta | ( | double | theta | ) |
Sets parameter theta. Also known as the scale parameter.
References Gamma::getTheta(), and RandGenerator::rng_.
Referenced by initCinfo().
reports error if parameters have not been set properly.
Reimplemented from RandGenerator.
References RandGenerator::rng_.