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

Idist Class Reference
[Integer distributions]

Inherits Dist.

Inherited by Draw, Iconst, Poisson, and Randint.


Detailed Description

Interface for integer distributions.

Author:
Ralf Gerstenberger

Idist declares the 'int sample()' method for discrete distribution classes. All derived classes implement this method to provide the random numbers in different distributions.

Since:
1.0


Public Member Functions

 Idist (DistContext *c, Label title)
 Construction.

virtual int sample ()=0
 Get next random number.


Constructor & Destructor Documentation

Idist DistContext c,
Label  title
[inline]
 

Construction.

Parameters:
title Label of the generator
c pointer to a DistContext object


Member Function Documentation

virtual int sample  )  [pure virtual]
 

Get next random number.

This function returns the next random number. It is implemented in derived classes which generate random numbers in different distributions.

Implemented in Randint, Poisson, Draw, and Iconst.


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