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

Normal Class Reference
[Continuous distributions]

Inherits Rdist.


Detailed Description

Normal distribution of random numbers

Author:
Ralf Gerstenberger

Note:
Normal from ODEM

supports Report

Normal provides a series of normal ('Gauss') distributed random numbers. The parameter mean and divergence are set in the constructor.

Since:
1.0


Public Member Functions

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

virtual ~Normal ()
 Destruction.

virtual double sample ()
 Get next random number.

double getA ()
 Get parameter na.

double getB ()
 Get parameter nb.

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

Normal DistContext c,
Label  title,
double  na,
double  nb
 

Construction.

Parameters:
title Label of the generator
c pointer to DistContext object
na a mean-value
nb b divergence
The parameter na and nb define the mean-value and the divergence of the normal distribution generated by Normal.


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