Main Page   Modules   Namespace List   Class Hierarchy   Alphabetical List   Data Structures   File List   Namespace Members   Data Fields   Globals   Related Pages   Examples  

Uniform Class Reference
[Continuous distributions]

Inherits Rdist.


Detailed Description

Uniform distribution of random numbers

Author:
Ralf Gerstenberger

Note:
Uniform from ODEM

supports Report

Uniform provides a series of uniform distributed random numbers in the interval [a, b). The parameter a and b are set in the constructor.

Since:
1.0


Public Member Functions

 Uniform (DistContext *c, Label title, double ua, double ub)
 Construction.

virtual ~Uniform ()
 Destruction.

virtual double sample ()
 Get next random number.

double getA ()
 Get parameter a.

double getB ()
 Get parameter b.

int getUses ()
 Get number of uses.

virtual void reset ()
 Reset statistics.

virtual void report (Report *r)
 Generate report.


Protected Attributes

double a
double b
int uses


Constructor & Destructor Documentation

Uniform DistContext c,
Label  title,
double  ua,
double  ub
 

Construction.

Parameters:
title Label of the generator
c pointer to DistContext object
ua lower bound a
ub upper bound b
The parameters ua and ub define the interval of the distribution.


Generated on Mon Aug 11 10:36:07 2003 for ODEMx by doxygen1.3