The Statistic class is a simple class designed to store a variable for statistical analysis. More...
#include <Statistic.h>
Public Member Functions | |
Statistic () | |
The default constructor. | |
double | minimum () const |
The minimum value. | |
double | maximum () const |
The maximum value. | |
void | operator+= (double input) |
Operator to add another point. | |
unsigned int | numberOfPoints () const |
Number of points. | |
double | mean () const |
Mean. | |
double | mean_stdDev () const |
Error on the mean estimate. | |
double | mean_var () const |
Variance on the mean estimate. | |
double | stdDev () const |
Standard Deviation. | |
double | var () const |
Variance. | |
double | total () const |
Total entry. | |
Private Attributes | |
unsigned int | _n |
Number of entries. | |
double | _xsum |
Sum of the values. | |
double | _x2sum |
Sum of the squares of the values. | |
double | _min |
The minimum value. | |
double | _max |
The maximum value. | |
The Statistic class is a simple class designed to store a variable for statistical analysis.
Definition at line 23 of file Statistic.h.
|
inline |
The default constructor.
Definition at line 30 of file Statistic.h.
|
inline |
|
inline |
Mean.
Definition at line 63 of file Statistic.h.
Referenced by Herwig::MultiplicityInfo::simMultiplicity().
|
inline |
Error on the mean estimate.
Needed for example for Profile histograms, where this should be used to compute a chi2 or significance level of deviation to data, rather than stdDeV. This is obvious because the error on the estimate should go to zero for N -> infinity.
Definition at line 75 of file Statistic.h.
References mean_var().
Referenced by Herwig::MultiplicityInfo::simError().
|
inline |
Variance on the mean estimate.
Needed for example for Profile histograms, where this should be used to compute a chi2 or significance level of deviation to data, rather than stdDeV This is obvious because the error on the estimate should go to zero for N -> infinity.
Definition at line 84 of file Statistic.h.
Referenced by mean_stdDev().
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Variance.
Definition at line 97 of file Statistic.h.
References _n, _x2sum, and _xsum.
Referenced by mean_var(), and stdDev().
|
private |
The maximum value.
Definition at line 132 of file Statistic.h.
Referenced by maximum(), and operator+=().
|
private |
The minimum value.
Definition at line 127 of file Statistic.h.
Referenced by minimum(), and operator+=().
|
private |
Number of entries.
Definition at line 112 of file Statistic.h.
Referenced by mean(), mean_var(), numberOfPoints(), operator+=(), and var().
|
private |
Sum of the squares of the values.
Definition at line 122 of file Statistic.h.
Referenced by operator+=(), and var().
|
private |
Sum of the values.
Definition at line 117 of file Statistic.h.
Referenced by mean(), operator+=(), total(), and var().