Main Page   Modules   Class Hierarchy   Compound List   File List   Compound Members  

cDoubleHistogram Class Reference

#include <chist.h>

Inheritance diagram for cDoubleHistogram::

cEqdHistogramBase cHistogramBase cDensityEstBase cStdDev cStatistic cObject List of all members.

Public Methods

Constructors, destructor, assignment.
 cDoubleHistogram (const cDoubleHistogram &r)
 cDoubleHistogram (const char *name=NULL, int numcells=10)
virtual ~cDoubleHistogram ()
cDoubleHistogram& operator= (const cDoubleHistogram &)
Redefined cObject member functions.
virtual const char* className () const
virtual cObjectdup () const
virtual int netPack ()
virtual int netUnpack ()
Redefined member functions from cStatistic and its subclasses.
virtual double random () const

Detailed Description

Equidistant histogram for doubles. cDoubleHistogram is derived from cEqdHistogramBase which contains most of the functionality.


Constructor & Destructor Documentation

cDoubleHistogram::cDoubleHistogram ( const cDoubleHistogram & r ) [inline]
 

Copy constructor

cDoubleHistogram::cDoubleHistogram ( const char * name = NULL,
int numcells = 10 ) [explicit]
 

Constructor.

cDoubleHistogram::~cDoubleHistogram ( ) [virtual]
 

Destructor.


Member Function Documentation

const char * cDoubleHistogram::className ( ) const [inline, virtual]
 

Returns pointer to a string containing the class name, "cDoubleHistogram".

Reimplemented from cEqdHistogramBase.

cObject * cDoubleHistogram::dup ( ) const [inline, virtual]
 

Creates and returns an exact copy of this object. See cObject for more details.

Reimplemented from cStdDev.

int cDoubleHistogram::netPack ( ) [virtual]
 

Serializes the object into a PVM or MPI send buffer. Used by the simulation kernel for parallel execution. See cObject for more details.

Reimplemented from cEqdHistogramBase.

int cDoubleHistogram::netUnpack ( ) [virtual]
 

Deserializes the object from a PVM or MPI receive buffer Used by the simulation kernel for parallel execution. See cObject for more details.

Reimplemented from cEqdHistogramBase.

cDoubleHistogram & cDoubleHistogram::operator= ( const cDoubleHistogram & ) [inline]
 

Assignment is not supported for this class. This function raises an error when called.

double cDoubleHistogram::random ( ) const [virtual]
 

Returns a random number based on the distribution collected. If no values have been collected, it returns 0; when in initial collection phase, it returns one of the stored observations; after the histogram has been set up, a random integer is returned.

Reimplemented from cDensityEstBase.


The documentation for this class was generated from the following file:
Generated at Sat May 4 15:45:49 2002 for OMNeT++ by doxygen1.2.8.1 written by Dimitri van Heesch, © 1997-2001