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

Negexp Class Reference
[Continuous distributions]

Inherits Rdist.


Detailed Description

Negative exponential distribution of random numbers.

Author:
Ralf Gerstenberger

Note:
Negexp from ODEM

supports Report

Negexp provides a series of negative exponential distributed random numbers.

Since:
1.0


Public Member Functions

 Negexp (DistContext *c, Label title, double na)
 Construction.

virtual ~Negexp ()
 Destruction.

virtual double sample ()
 Get next random number.

double getA ()
 Get parameter na.

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

Negexp DistContext c,
Label  title,
double  na
 

Construction.

Parameters:
title Label of the generator
c pointer to DistContext object
na inverse expected value


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