Exponential Class Reference

A class that generates exponentially distributed random variables. More...

#include <Exponential.h>

Inheritance diagram for Exponential::

CRandVar List of all members.

Public Methods

 Exponential (RNG *gen=0, double _meanval=1.0)
 Constructor.

double meanval ()
 Returns the mean of this distribution.

void meanval (double _b)
 Sets the mean of this distribution.

virtual double operator() ()
 Operator which generates a random value.


Protected Attributes

double b
 The mean of this distribution.

Uniform uvar
 Used to generate the r.v.


Detailed Description

A class that generates exponentially distributed random variables.


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