Logo ROOT   6.16/01
Reference Guide
List of all members | Classes | Public Types | Public Member Functions | Private Attributes | List of all members
ROOT::Experimental::RHistDataMomentUncert< DIMENSIONS, PRECISION > Class Template Reference

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

For now do as RH1: calculate first (xw) and second (x^2w) moment.

Definition at line 275 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 Content_t = std::vector< 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

 RHistDataMomentUncert ()=default
 
 RHistDataMomentUncert (size_t)
 
void Fill (const CoordArray_t &x, int, Weight_t weight=1.)
 Add weight to the bin at binidx; the coordinate was x. More...
 

Private Attributes

std::array< Weight_t, DIMENSIONS > fMomentX2W
 
std::array< Weight_t, DIMENSIONS > fMomentXW
 

#include <ROOT/RHistData.hxx>

Member Typedef Documentation

◆ BinStat_t

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

Definition at line 294 of file RHistData.hxx.

◆ ConstBinStat_t

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

Definition at line 293 of file RHistData.hxx.

◆ Content_t

template<int DIMENSIONS, class PRECISION >
using ROOT::Experimental::RHistDataMomentUncert< DIMENSIONS, PRECISION >::Content_t = std::vector<PRECISION>

Type of the bin content array.

Definition at line 282 of file RHistData.hxx.

◆ CoordArray_t

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

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

Definition at line 278 of file RHistData.hxx.

◆ Weight_t

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

The type of the weight and the bin content.

Definition at line 280 of file RHistData.hxx.

Constructor & Destructor Documentation

◆ RHistDataMomentUncert() [1/2]

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

◆ RHistDataMomentUncert() [2/2]

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

Definition at line 302 of file RHistData.hxx.

Member Function Documentation

◆ Fill()

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

Add weight to the bin at binidx; the coordinate was x.

Definition at line 305 of file RHistData.hxx.

Member Data Documentation

◆ fMomentX2W

template<int DIMENSIONS, class PRECISION >
std::array<Weight_t, DIMENSIONS> ROOT::Experimental::RHistDataMomentUncert< DIMENSIONS, PRECISION >::fMomentX2W
private

Definition at line 298 of file RHistData.hxx.

◆ fMomentXW

template<int DIMENSIONS, class PRECISION >
std::array<Weight_t, DIMENSIONS> ROOT::Experimental::RHistDataMomentUncert< DIMENSIONS, PRECISION >::fMomentXW
private

Definition at line 297 of file RHistData.hxx.


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