#include <chist.h>
Inheritance diagram for cLongHistogram::
Public Methods | |
Constructors, destructor, assignment. | |
cLongHistogram (const cLongHistogram &r) | |
cLongHistogram (const char *name=NULL, int numcells=10) | |
virtual | ~cLongHistogram () |
cLongHistogram& | operator= (const cLongHistogram &) |
Redefined cObject member functions. | |
virtual cObject* | dup () const |
virtual int | netPack () |
virtual int | netUnpack () |
Redefined member functions from cStatistic and its subclasses. | |
virtual void | collect (double val) |
virtual double | random () const |
Protected Methods | |
virtual void | setupRange () |
The histogram is set up in the following way:
|
Copy constructor. |
|
Constructor. |
|
Destructor. |
|
Collects one value. FIXME: truncates + collects Reimplemented from cDensityEstBase. |
|
Creates and returns an exact copy of this object. See cObject for more details. Reimplemented from cStdDev. |
|
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. |
|
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. |
|
Assignment is not supported by this class: this method throws a cException when called. |
|
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. |
|
Called internally by transform(), this method should determine and set up the histogram range Reimplemented from cEqdHistogramBase. |