ExponentialRng Class Reference

#include <ExponentialRng.h>

Inheritance diagram for ExponentialRng:
Inheritance graph
[legend]
Collaboration diagram for ExponentialRng:
Collaboration graph
[legend]

List of all members.

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 CinfoinitCinfo ()

Detailed Description

This is MOOSE wrapper for Exponentially distributed random number generator class, Exponential. The default


Constructor & Destructor Documentation

ExponentialRng::ExponentialRng (  ) 

References RANDOM_MINIMIZATION.


Member Function Documentation

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().

Here is the call graph for this function:

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().

void ExponentialRng::vReinit ( const Eref e,
ProcPtr  p 
) [virtual]

Reports error in case the parameter mean has not been set.

Reimplemented from RandGenerator.

References RandGenerator::rng_.


The documentation for this class was generated from the following files:

Generated on 1 Jul 2015 for MOOSE by  doxygen 1.6.1