In file mydocsrc/iml_rand.h:

class exponential_rv : public uniform_rv

The class defines an Exponential-random-number generator

Inheritance:

exponential_rv < uniform_rv < scalar_rv


Public Methods

exponential_rv (float LLambduh = 1.0)
The single constructor; defines a default value.
virtual void reset (float LLambduh, float Dummy=0)
Here is the required over-ride for the reset() interface function
double sample (void)
Here we correctly over-ride the sample() interface function.

Inherited from uniform_rv:

Public Methods

virtual void seed(long Seed)
void set_min_max(float Min, float Max)
void use_FSULTRA(void)
void use_MT19937B(void)

Inherited from scalar_rv:


Documentation

The class defines an Exponential-random-number generator. The interface for using it is defined in the scalar_rv class: reset() and sample().
virtual void reset(float LLambduh, float Dummy=0)
Here is the required over-ride for the reset() interface function. The reset function has only one parameter (the mean) while other distributions can have two (mean, sdev).


This class has no child classes.

alphabetic index hierarchy of classes


generated by doc++