herwig is hosted by Hepforge, IPPP Durham
 Herwig  7.1.4
Herwig::Statistic Class Reference

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)

unsigned int numberOfPoints () const
Number of points.

double mean () const
Mean.

double mean_stdDev () const
Error on the mean estimate. More...

double mean_var () const
Variance on the mean estimate. More...

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.

## Detailed Description

The Statistic class is a simple class designed to store a variable for statistical analysis.

Definition at line 23 of file Statistic.h.

## ◆ mean_stdDev()

 double Herwig::Statistic::mean_stdDev ( ) const
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().

## ◆ mean_var()

 double Herwig::Statistic::mean_var ( ) const
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.

References _n, and var().

Referenced by mean_stdDev().

The documentation for this class was generated from the following file: