Inherited by Histo.
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.
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 |