#include <ExponentialRng.h>
Public Member Functions | |
ExponentialRng () | |
double | getMean () const |
void | setMean (double mean) |
int | getMethod () const |
void | setMethod (int method) |
virtual void | vReinit (const Eref &e, ProcPtr p) |
Static Public Member Functions | |
static const Cinfo * | initCinfo () |
This is MOOSE wrapper for Exponentially distributed random number generator class, Exponential. The default
ExponentialRng::ExponentialRng | ( | ) |
References RANDOM_MINIMIZATION.
double ExponentialRng::getMean | ( | ) | const |
Replaces the same method in base class. Returns the mean as stored in this object independent of the actual generator object.
Reimplemented from RandGenerator.
Referenced by initCinfo().
int ExponentialRng::getMethod | ( | ) | const |
Returns the algorithm used for sample generation. 0 for logarithmic method. 1 for random minimization method.
Referenced by initCinfo().
const Cinfo * ExponentialRng::initCinfo | ( | ) | [static] |
Reimplemented from RandGenerator.
References getMean(), getMethod(), RandGenerator::initCinfo(), setMean(), and setMethod().
void ExponentialRng::setMean | ( | double | mean | ) |
Sets the mean. Since exponential distribution is defined in terms of this parameter, it is stored locally independent of the instantiation of the internal generator object.
References RandGenerator::rng_.
Referenced by initCinfo().
void ExponentialRng::setMethod | ( | int | method | ) |
Sets the algorithm used for sample generation. 0 for logarithmic method. 1 for random minimization method. Default is random minimization.
References LOGARITHMIC, RANDOM_MINIMIZATION, and RandGenerator::rng_.
Referenced by initCinfo().
Reports error in case the parameter mean has not been set.
Reimplemented from RandGenerator.
References RandGenerator::rng_.