![]() |
ATLAS Offline Software
|
Extend Stat helper by an equidistant binned histogram. More...
#include <StatUtils.h>
Public Member Functions | |
| StatHist ()=default | |
| The default constructor will disable histogramming. | |
| StatHist (unsigned int n_bins, float xmin, float xmax) | |
| Set up class to also fill a histogram. | |
| void | setBinning (unsigned int n_bins, float xmin, float xmax) |
| Define histogramm bins and enable histogramming. | |
| StatHist | createEmptyClone () |
| void | add (double val) |
| Gather statistics and fill the histogram if not disabled. | |
| void | reset () |
| Set histogram contents and statistics to zero. | |
| StatHist & | operator+= (const StatHist &b) |
| Add the statistucs and histogrammed data fro the given object. | |
| double | lowerEdge (unsigned int i) const |
| Get the lower edge of the given bin. | |
| std::string | histogramToString () const |
| Create a string showing the contents of the histogram The string. | |
| unsigned int | n () const |
| double | min () const |
| double | max () const |
| double | mean () const |
| double | rms2 () const |
| double | rms () const |
| Stat & | operator+= (const Stat &b) |
| @breif Add the statistics gathered in the Stat object b | |
Public Attributes | |
| double | m_xmin {} |
| double | m_scale {1.0} |
| std::vector< unsigned int > | m_histogram |
| unsigned int | m_n =0 |
| double | m_sum =0. |
| double | m_sum2 =0. |
| double | m_min =std::numeric_limits<double>::max() |
| double | m_max =-std::numeric_limits<double>::max() |
Extend Stat helper by an equidistant binned histogram.
Definition at line 81 of file StatUtils.h.
|
default |
The default constructor will disable histogramming.
|
inline |
Set up class to also fill a histogram.
| n_bins | number of bins without over and underflow |
| the | value at the lower edge of the first bin |
| the | value at the upper edge of the last bin |
Definition at line 90 of file StatUtils.h.
|
inline |
Gather statistics and fill the histogram if not disabled.
Definition at line 117 of file StatUtils.h.
|
inline |
Definition at line 108 of file StatUtils.h.
|
inline |
Create a string showing the contents of the histogram The string.
Definition at line 153 of file StatUtils.h.
|
inline |
Get the lower edge of the given bin.
| i | the bin (0: underflow; n+1 overflow) |
Definition at line 147 of file StatUtils.h.
|
inlineinherited |
Definition at line 30 of file StatUtils.h.
|
inlineinherited |
Definition at line 31 of file StatUtils.h.
|
inlineinherited |
Definition at line 29 of file StatUtils.h.
|
inlineinherited |
Definition at line 28 of file StatUtils.h.
@breif Add the statistics gathered in the Stat object b
Definition at line 45 of file StatUtils.h.
Add the statistucs and histogrammed data fro the given object.
Definition at line 135 of file StatUtils.h.
|
inline |
Set histogram contents and statistics to zero.
Definition at line 127 of file StatUtils.h.
|
inlineinherited |
Definition at line 33 of file StatUtils.h.
|
inlineinherited |
|
inline |
Define histogramm bins and enable histogramming.
| n_bins | number of bins without over and underflow |
| the | value at the lower edge of the first bin |
| the | value at the upper edge of the last bin |
Definition at line 99 of file StatUtils.h.
| std::vector<unsigned int> ActsUtils::StatHist::m_histogram |
Definition at line 179 of file StatUtils.h.
|
inherited |
Definition at line 58 of file StatUtils.h.
|
inherited |
Definition at line 57 of file StatUtils.h.
|
inherited |
Definition at line 54 of file StatUtils.h.
| double ActsUtils::StatHist::m_scale {1.0} |
Definition at line 178 of file StatUtils.h.
|
inherited |
Definition at line 55 of file StatUtils.h.
|
inherited |
Definition at line 56 of file StatUtils.h.
| double ActsUtils::StatHist::m_xmin {} |
Definition at line 177 of file StatUtils.h.