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

Draw Class Reference
[Integer distributions]

Inherits Idist.


Detailed Description

Random series of 0 and 1.

Author:
Ralf Gerstenberger

Note:
Draw from ODEM

supports Report

Draw provides a random series of 1 and 0. The probability of the 1 against a 0 is set in the constructor.

Since:
1.0


Public Member Functions

 Draw (DistContext *c, Label title, double da)
 Construction.

virtual ~Draw ()
 Destruction.

virtual int sample ()
 Get next random number.

double getA ()
 Get parameter da.

int getUses ()
 Get number of uses.

virtual void reset ()
 Reset statistics.

virtual void report (Report *r)
 Generate report.


Protected Attributes

double a
int uses


Constructor & Destructor Documentation

Draw DistContext c,
Label  title,
double  da
 

Construction.

Parameters:
title Label of the generator
c pointer to DistContext object
da probability of a 1 against a 0
The parameter da defines the probability of a 1 against a 0.


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