Logo ROOT  
Reference Guide
ROOT::Experimental::RHistStatTotalSumOfSquaredWeights< DIMENSIONS, PRECISION > Class Template Reference

template<int DIMENSIONS, class PRECISION>
class ROOT::Experimental::RHistStatTotalSumOfSquaredWeights< DIMENSIONS, PRECISION >

Keeps track of the histogram's total sum of squared weights.

Definition at line 159 of file RHistData.hxx.

Classes

class  RBinStat
 No-op; this class does not provide per-bin statistics. More...
 

Public Types

using BinStat_t = RBinStat
 
using ConstBinStat_t = RBinStat
 
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

 RHistStatTotalSumOfSquaredWeights ()=default
 
 RHistStatTotalSumOfSquaredWeights (size_t)
 
void Fill (const CoordArray_t &, int, Weight_t weight=1.)
 Add weight to the bin content at binidx. More...
 
Weight_t GetSumOfSquaredWeights () const
 Get the sum of weights. More...
 

Private Attributes

PRECISION fSumWeights2 = 0
 Sum of (weights^2). More...
 

#include <ROOT/RHistData.hxx>

Member Typedef Documentation

◆ BinStat_t

template<int DIMENSIONS, class PRECISION >
using ROOT::Experimental::RHistStatTotalSumOfSquaredWeights< DIMENSIONS, PRECISION >::BinStat_t = RBinStat

Definition at line 176 of file RHistData.hxx.

◆ ConstBinStat_t

template<int DIMENSIONS, class PRECISION >
using ROOT::Experimental::RHistStatTotalSumOfSquaredWeights< DIMENSIONS, PRECISION >::ConstBinStat_t = RBinStat

Definition at line 175 of file RHistData.hxx.

◆ CoordArray_t

template<int DIMENSIONS, class PRECISION >
using ROOT::Experimental::RHistStatTotalSumOfSquaredWeights< DIMENSIONS, PRECISION >::CoordArray_t = Hist::CoordArray_t<DIMENSIONS>

The type of a (possibly multi-dimensional) coordinate.

Definition at line 162 of file RHistData.hxx.

◆ Weight_t

template<int DIMENSIONS, class PRECISION >
using ROOT::Experimental::RHistStatTotalSumOfSquaredWeights< DIMENSIONS, PRECISION >::Weight_t = PRECISION

The type of the weight and the bin content.

Definition at line 164 of file RHistData.hxx.

Constructor & Destructor Documentation

◆ RHistStatTotalSumOfSquaredWeights() [1/2]

template<int DIMENSIONS, class PRECISION >
ROOT::Experimental::RHistStatTotalSumOfSquaredWeights< DIMENSIONS, PRECISION >::RHistStatTotalSumOfSquaredWeights ( )
default

◆ RHistStatTotalSumOfSquaredWeights() [2/2]

template<int DIMENSIONS, class PRECISION >
ROOT::Experimental::RHistStatTotalSumOfSquaredWeights< DIMENSIONS, PRECISION >::RHistStatTotalSumOfSquaredWeights ( size_t  )
inline

Definition at line 184 of file RHistData.hxx.

Member Function Documentation

◆ Fill()

template<int DIMENSIONS, class PRECISION >
void ROOT::Experimental::RHistStatTotalSumOfSquaredWeights< DIMENSIONS, PRECISION >::Fill ( const CoordArray_t ,
int  ,
Weight_t  weight = 1. 
)
inline

Add weight to the bin content at binidx.

Definition at line 187 of file RHistData.hxx.

◆ GetSumOfSquaredWeights()

template<int DIMENSIONS, class PRECISION >
Weight_t ROOT::Experimental::RHistStatTotalSumOfSquaredWeights< DIMENSIONS, PRECISION >::GetSumOfSquaredWeights ( ) const
inline

Get the sum of weights.

Definition at line 190 of file RHistData.hxx.

Member Data Documentation

◆ fSumWeights2

template<int DIMENSIONS, class PRECISION >
PRECISION ROOT::Experimental::RHistStatTotalSumOfSquaredWeights< DIMENSIONS, PRECISION >::fSumWeights2 = 0
private

Sum of (weights^2).

Definition at line 180 of file RHistData.hxx.


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