ProbeSlice Class Reference
[Probes]

Measures the $ \overline{x} = E[x]$, $ \overline{x^2} = E^2[x^2]$ and $ \sigma^2 = E[(x-\overline{x})^2] $. More...

#include <probeslice.h>

Inherits Probe.

Inheritance diagram for ProbeSlice:

Inheritance graph
[legend]
Collaboration diagram for ProbeSlice:

Collaboration graph
[legend]
List of all members.

Public Member Functions

virtual void Reset (void)
 [internal] Reset the probe, clearing all its internal counters and starting a new output file.
virtual void Zap (double)
 [internal] Reset the probe, clearing all its internal counters. The meaning of the parameter is probe-dependant.
virtual void Observe (double value)
 Observe a value, actual use of the value is probe-dependant.
virtual void WriteToFile (double time)
 [internal] Write the probe statistics to the output file. It is called periodically by NePSing.

Detailed Description

Measures the $ \overline{x} = E[x]$, $ \overline{x^2} = E^2[x^2]$ and $ \sigma^2 = E[(x-\overline{x})^2] $.

It works like ProbeMean, but the internals of this probe type are set to zero after each WriteToFile. Hence, this probe measures and writes to file the observed values of $\overline{x}$, $\overline{x^2}$ and $\sigma^2$ between two consecutive WriteToFile.

output file format:

[Time of the observation] TAB $\overline{x}$ TAB $\overline{x^2}$ TAB $\sigma^2$


The documentation for this class was generated from the following file:
Generated on Wed Dec 22 23:23:50 2004 for NePSing by doxygen 1.3.9.1 ---- Hosted by SourceForge.net Logo