#include <cstat.h>
Inheritance diagram for cStdDev:
Public Member Functions | |
Constructors, destructor, assignment. | |
cStdDev (const cStdDev &r) | |
cStdDev (const char *name=NULL) | |
virtual | ~cStdDev () |
cStdDev & | operator= (const cStdDev &res) |
Redefined cObject member functions. | |
virtual cPolymorphic * | dup () const |
virtual std::string | info () const |
virtual void | writeContents (std::ostream &os) |
virtual void | netPack (cCommBuffer *buffer) |
virtual void | netUnpack (cCommBuffer *buffer) |
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.
Implements cStatistic. Reimplemented in cDensityEstBase, cHistogramBase, cWeightedStdDev, and cVarHistogram. |
|
Collects one value.
Implements 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 cPolymorphic. |
|
Reads the object data from a file written out by saveToFile() (or written by hand).
Implements cStatistic. Reimplemented in cDensityEstBase, cHistogramBase, cEqdHistogramBase, cKSplit, cPSquare, cWeightedStdDev, and cVarHistogram. |
|
Returns the maximum of the samples collected.
Implements cStatistic. |
|
Returns the mean of the samples collected.
Implements cStatistic. Reimplemented in cWeightedStdDev. |
|
Returns the minimum of the samples collected.
Implements 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, 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, 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.
Implements cStatistic. Reimplemented in cLongHistogram, cDoubleHistogram, cKSplit, cPSquare, and cVarHistogram. |
|
Returns the number of samples collected.
Implements cStatistic. |
|
Writes the contents of the object into a text file.
Implements cStatistic. Reimplemented in cDensityEstBase, cHistogramBase, cEqdHistogramBase, cKSplit, cPSquare, cWeightedStdDev, and cVarHistogram. |
|
Returns the squared sum of the collected data.
Implements cStatistic. |
|
Returns the standard deviation of the samples collected.
Implements cStatistic. |
|
Returns the sum of samples collected.
Implements cStatistic. |
|
Returns the variance of the samples collected.
Implements cStatistic. Reimplemented in cWeightedStdDev. |
|
Returns the sum of weights of the samples collected.
Implements 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. |