#include <statistics.hh>
Public Member Functions | |
| StatBox () | |
| Default constructor. | |
| StatBox (const StatBox &stbx) | |
| Copy constructor, it is possible to copy StatBox objects. | |
| StatBox & | operator= (const StatBox &stbx) |
| assignment | |
| void | reset () |
| Reset StatBox, to start taking statistics afresh. | |
| void | put (double x) |
| Put a double value x into the StatBox. | |
| void | takeaway (double x) |
| Take away a double value from the StatBox. | |
| double | mean () const |
| Mean of all values "put" into the StatBox. | |
| double | upper () const |
| Maximum value. | |
| double | lower () const |
| Minimum value. | |
| double | rms () const |
| Root Mean Square value for all the entries. | |
| double | variance () const |
| Variance. | |
| double | stddev () const |
| Standard deviation. | |
| int | numberofentries () const |
| Number of entries. | |
| double | sum () const |
| Sum of the entries. | |
| double | sqrsum () const |
| Sum of the squares of the entries. | |
| void prf_utils::StatBox::takeaway | ( | double | x | ) | [inline] |
Caution: The function takeaway(x) does not check if x was ever put into the box. StatBox does not store any values put into it.