Main Page   Modules   Namespace List   Class Hierarchy   Alphabetical List   Data Structures   File List   Namespace Members   Data Fields   Globals   Related Pages   Examples  

Tally Class Reference
[Statistic]

Inherits Tab.

Inherited by Histo.


Detailed Description

Compute statistics about provided data.

Author:
Ralf Gerstenberger

Note:
Tally from ODEM

Tally supports Report

Tally computes minimum, maximum, mean-value, divergence and number of samples (size) independent from simulation time (see Accum). A value of 1 for 4 time units together with a value of 0 for 1 time unit will result in a mean value of (1+0)/2 = 0.5.

Since:
1.0


Public Member Functions

 Tally (Simulation *s, Label title="")
 Construction.

virtual ~Tally ()
 Destruction.

virtual void update (double v)
 Update statistics.

virtual void reset ()
 Reset statistics.

unsigned int getSize ()
 Get number of samples.

double getMin ()
 Get minimum.

double getMax ()
 Get maximum.

double getMean ()
 Get average.

double getDivergence ()
 Get divergence.

virtual void report (Report *r)
 Report generation.


Protected Attributes

double sum
double sumsq
double min
double max


Generated on Mon Aug 11 10:36:07 2003 for ODEMx by doxygen1.3