Main Page   Modules   Class Hierarchy   Compound List   File List   Compound Members  

cEqdHistogramBase Class Reference

#include <chist.h>

Inheritance diagram for cEqdHistogramBase::

cHistogramBase cDensityEstBase cStdDev cStatistic cObject cDoubleHistogram cLongHistogram List of all members.

Public Methods

Constructors, destructor, assignment.
 cEqdHistogramBase (const cEqdHistogramBase &r)
 cEqdHistogramBase (const char *name=NULL, int numcells=10)
cEqdHistogramBase& operator= (const cEqdHistogramBase &res)
Redefined cObject member functions.
virtual int netPack ()
virtual int netUnpack ()
Redefined member functions from cStatistic and its subclasses.
virtual double basepoint (int k) const
virtual double cell (int k) const
virtual double pdf (double x) const
virtual double cdf (double x) const
virtual void saveToFile (FILE *) const
virtual void loadFromFile (FILE *)

Protected Methods

virtual void collectTransformed (double val)
virtual void setupRange ()

Detailed Description

Base class for equal cell size histograms.


Constructor & Destructor Documentation

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

Copy constructor.

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

Constructor.


Member Function Documentation

double cEqdHistogramBase::basepoint ( int k ) const [virtual]
 

Returns the kth cell boundary.

Reimplemented from cDensityEstBase.

double cEqdHistogramBase::cdf ( double x ) const [virtual]
 

Returns the value of the Cumulated Density Function at a given x.

Reimplemented from cDensityEstBase.

double cEqdHistogramBase::cell ( int k ) const [virtual]
 

Returns the number of observations that fell into the kth histogram cell.

Reimplemented from cDensityEstBase.

void cEqdHistogramBase::collectTransformed ( double val ) [protected, virtual]
 

Called internally by collect(), this method collects a value after the histogram has been transformed.

Reimplemented from cDensityEstBase.

void cEqdHistogramBase::loadFromFile ( FILE * ) [virtual]
 

Reads the object data from a file, in the format written out by saveToFile().

Reimplemented from cHistogramBase.

int cEqdHistogramBase::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 cHistogramBase.

Reimplemented in cLongHistogram, and cDoubleHistogram.

int cEqdHistogramBase::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 cHistogramBase.

Reimplemented in cLongHistogram, and cDoubleHistogram.

cEqdHistogramBase & cEqdHistogramBase::operator= ( const cEqdHistogramBase & res )
 

Assignment operator. The name member doesn't get copied; see cObject's operator=() for more details.

double cEqdHistogramBase::pdf ( double x ) const [virtual]
 

Returns the value of the Probability Density Function at a given x.

Reimplemented from cDensityEstBase.

void cEqdHistogramBase::saveToFile ( FILE * ) const [virtual]
 

Writes the contents of the object into a text file.

Reimplemented from cHistogramBase.

void cEqdHistogramBase::setupRange ( ) [protected, virtual]
 

Called internally by transform(), this method should determine and set up the histogram range. It also calculates the cell size.

Reimplemented from cDensityEstBase.

Reimplemented in cLongHistogram.


The documentation for this class was generated from the following file:
Generated at Mon Jun 16 23:37:32 2003 for OMNeT++ by doxygen1.2.8.1 written by Dimitri van Heesch, © 1997-2001