Logo ROOT  
Reference Guide
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 378 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, size_t)
 
void Add (const RHistDataMomentUncert &other)
 Merge with other RHistDataMomentUncert data, assuming same bin configuration. More...
 
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 397 of file RHistData.hxx.

◆ ConstBinStat_t

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

Definition at line 396 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 385 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 381 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 383 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  ,
size_t   
)
inline

Definition at line 406 of file RHistData.hxx.

Member Function Documentation

◆ Add()

template<int DIMENSIONS, class PRECISION >
void ROOT::Experimental::RHistDataMomentUncert< DIMENSIONS, PRECISION >::Add ( const RHistDataMomentUncert< DIMENSIONS, PRECISION > &  other)
inline

Merge with other RHistDataMomentUncert data, assuming same bin configuration.

Definition at line 421 of file RHistData.hxx.

◆ 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 409 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 401 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 400 of file RHistData.hxx.


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