ROOT 6.08/07 Reference Guide |
Histogram statistics to keep track of the Poisson uncertainty per bin.
Definition at line 208 of file THistData.hxx.
Classes | |
class | TBinStat |
Modifying view on a THistStatUncertainty for a given bin. More... | |
class | TConstBinStat |
Const view on a THistStatUncertainty for a given bin. More... | |
Public Types | |
using | BinStat_t = TBinStat |
using | ConstBinStat_t = TConstBinStat |
using | Content_t = STORAGE< PRECISION > |
Type of the bin content array. More... | |
using | CoordArray_t = Hist::CoordArray_t< DIMENSIONS > |
The type of a (possibly multi-dimensional) coordinate. More... | |
using | Weight_t = PRECISION |
The type of the weight and the bin content. More... | |
Public Member Functions | |
THistStatUncertainty ()=default | |
THistStatUncertainty (size_t size) | |
void | Fill (const CoordArray_t &, int binidx, Weight_t weight=1.) |
Add weight to the bin at binidx; the coordinate was x. More... | |
double | GetBinUncertaintyImpl (int binidx) const |
Calculate a bin's (Poisson) uncertainty of the bin content as the square-root of the bin's sum of squared weights. More... | |
Weight_t | GetSumOfSquaredWeights (int binidx) const |
Get a bin's sum of squared weights. More... | |
Weight_t & | GetSumOfSquaredWeights (int binidx) |
Get a bin's sum of squared weights. More... | |
const std::vector< double > & | GetSumOfSquaredWeights () const |
Get the structure holding the sum of squares of weights. More... | |
std::vector< double > & | GetSumOfSquaredWeights () |
Get the structure holding the sum of squares of weights (non-const). More... | |
Private Attributes | |
Content_t | fSumWeightsSquared |
Uncertainty of the content for each bin. More... | |
#include <ROOT/THistData.hxx>
using ROOT::Experimental::THistStatUncertainty< DIMENSIONS, PRECISION, STORAGE >::BinStat_t = TBinStat |
Definition at line 251 of file THistData.hxx.
using ROOT::Experimental::THistStatUncertainty< DIMENSIONS, PRECISION, STORAGE >::ConstBinStat_t = TConstBinStat |
Definition at line 250 of file THistData.hxx.
using ROOT::Experimental::THistStatUncertainty< DIMENSIONS, PRECISION, STORAGE >::Content_t = STORAGE<PRECISION> |
Type of the bin content array.
Definition at line 216 of file THistData.hxx.
using ROOT::Experimental::THistStatUncertainty< DIMENSIONS, PRECISION, STORAGE >::CoordArray_t = Hist::CoordArray_t<DIMENSIONS> |
The type of a (possibly multi-dimensional) coordinate.
Definition at line 212 of file THistData.hxx.
using ROOT::Experimental::THistStatUncertainty< DIMENSIONS, PRECISION, STORAGE >::Weight_t = PRECISION |
The type of the weight and the bin content.
Definition at line 214 of file THistData.hxx.
|
default |
|
inline |
Definition at line 259 of file THistData.hxx.
|
inline |
Add weight to the bin at binidx; the coordinate was x.
Definition at line 262 of file THistData.hxx.
|
inline |
Calculate a bin's (Poisson) uncertainty of the bin content as the square-root of the bin's sum of squared weights.
Definition at line 268 of file THistData.hxx.
|
inline |
Get a bin's sum of squared weights.
Definition at line 273 of file THistData.hxx.
|
inline |
Get a bin's sum of squared weights.
Definition at line 278 of file THistData.hxx.
|
inline |
Get the structure holding the sum of squares of weights.
Definition at line 283 of file THistData.hxx.
|
inline |
Get the structure holding the sum of squares of weights (non-const).
Definition at line 285 of file THistData.hxx.
|
private |
Uncertainty of the content for each bin.
Sum of squared weights
Definition at line 255 of file THistData.hxx.