Uniform Class Reference

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

#include <Uniform.h>

Inheritance diagram for Uniform::

CRandVar List of all members.

Public Methods

 Uniform (RNG *gen=0, double low=0.0, double high=1.0)
 Constructor.

double low ()
 Returns the lower limit of the r.v.

double low (double x)
 Sets the lower limit of the r.v.

double high ()
 Returns the upper limit of the r.v.

double high (double x)
 Sets the upper limit of the r.v.

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


Protected Attributes

double pLow
 The lower limit of the r.v.

double pHigh
 The upper limit of the r.v.

double delta
 The difference between pHigh and pLow.


Detailed Description

A class that generates uniformly distributed random variables.

Adapted from GNU code by Dirk Grunwald.


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