#include <cstat.h>
Inheritance diagram for cStdDev::
Public Methods | |
Constructors, destructor, assignment. | |
cStdDev (const cStdDev &r) | |
cStdDev (const char *name=NULL) | |
virtual | ~cStdDev () |
cStdDev& | operator= (const cStdDev &res) |
Redefined cObject member functions. | |
virtual cObject* | dup () const |
virtual void | info (char *buf) |
virtual void | writeContents (ostream &os) |
virtual int | netPack () |
virtual int | netUnpack () |
Redefined cStatistic functions. | |
virtual void | collect (double val) |
virtual long | samples () const |
virtual double | weights () const |
virtual double | sum () const |
virtual double | sqrSum () const |
virtual double | min () const |
virtual double | max () const |
virtual double | mean () const |
virtual double | stddev () const |
virtual double | variance () const |
virtual double | random () const |
virtual void | clearResult () |
virtual void | saveToFile (FILE *) const |
virtual void | loadFromFile (FILE *) |
|
Copy constructor. |
|
Constructor. |
|
Destructor. |
|
Clears the results collected so far. Reimplemented from cStatistic. Reimplemented in cDensityEstBase, cHistogramBase, cWeightedStdDev, and cVarHistogram. |
|
Collects one value. Reimplemented from cStatistic. Reimplemented in cDensityEstBase, cLongHistogram, and cWeightedStdDev. |
|
Creates and returns an exact copy of this object. See cObject for more details. Reimplemented from cObject. Reimplemented in cLongHistogram, cDoubleHistogram, cKSplit, cPSquare, cWeightedStdDev, and cVarHistogram. |
|
Produces a one-line description of object contents into the buffer passed as argument. See cObject for more details. Reimplemented from cObject. |
|
Reads the object data from a file written out by saveToFile() (or written by hand) Reimplemented from cStatistic. Reimplemented in cDensityEstBase, cHistogramBase, cEqdHistogramBase, cKSplit, cPSquare, cWeightedStdDev, and cVarHistogram. |
|
Returns the maximum of the samples collected. Reimplemented from cStatistic. |
|
Returns the mean of the samples collected. Reimplemented from cStatistic. Reimplemented in cWeightedStdDev. |
|
Returns the minimum of the samples collected. Reimplemented from cStatistic. |
|
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 cStatistic. Reimplemented in cDensityEstBase, cHistogramBase, cEqdHistogramBase, cLongHistogram, cDoubleHistogram, cKSplit, cPSquare, cWeightedStdDev, and cVarHistogram. |
|
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 cStatistic. Reimplemented in cDensityEstBase, cHistogramBase, cEqdHistogramBase, cLongHistogram, cDoubleHistogram, cKSplit, cPSquare, cWeightedStdDev, and cVarHistogram. |
|
Assignment operator. The name member doesn't get copied; see cObject's operator=() for more details. |
|
Returns numbers from a normal distribution with the current mean and standard deviation. Reimplemented from cStatistic. Reimplemented in cDensityEstBase, cLongHistogram, cDoubleHistogram, cKSplit, cPSquare, and cVarHistogram. |
|
Returns the number of samples collected. Reimplemented from cStatistic. |
|
Writes the contents of the object into a text file. Reimplemented from cStatistic. Reimplemented in cDensityEstBase, cHistogramBase, cEqdHistogramBase, cKSplit, cPSquare, cWeightedStdDev, and cVarHistogram. |
|
Returns the squared sum of the collected data. Reimplemented from cStatistic. |
|
Returns the standard deviation of the samples collected. Reimplemented from cStatistic. |
|
Returns the sum of samples collected. Reimplemented from cStatistic. |
|
Returns the variance of the samples collected. Reimplemented from cStatistic. Reimplemented in cWeightedStdDev. |
|
Returns the sum of weights of the samples collected. Reimplemented from cStatistic. Reimplemented in cWeightedStdDev. |
|
Writes textual information about this object to the stream. See cObject for more details. Reimplemented from cObject. Reimplemented in cDensityEstBase, cKSplit, and cPSquare. |