Logo ROOT   6.10/09
Reference Guide
List of all members | Classes | Public Types | Public Member Functions | Private Attributes | List of all members
ROOT::Experimental::THistDataMomentUncert< DIMENSIONS, PRECISION, STORAGE > Class Template Reference

template<int DIMENSIONS, class PRECISION, template< class P_ > class STORAGE>
class ROOT::Experimental::THistDataMomentUncert< DIMENSIONS, PRECISION, STORAGE >

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

Definition at line 292 of file THistData.hxx.

Classes

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

Public Types

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

 THistDataMomentUncert ()=default
 
 THistDataMomentUncert (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/THistData.hxx>

Member Typedef Documentation

◆ BinStat_t

template<int DIMENSIONS, class PRECISION , template< class P_ > class STORAGE>
using ROOT::Experimental::THistDataMomentUncert< DIMENSIONS, PRECISION, STORAGE >::BinStat_t = TBinStat

Definition at line 311 of file THistData.hxx.

◆ ConstBinStat_t

template<int DIMENSIONS, class PRECISION , template< class P_ > class STORAGE>
using ROOT::Experimental::THistDataMomentUncert< DIMENSIONS, PRECISION, STORAGE >::ConstBinStat_t = TBinStat

Definition at line 310 of file THistData.hxx.

◆ Content_t

template<int DIMENSIONS, class PRECISION , template< class P_ > class STORAGE>
using ROOT::Experimental::THistDataMomentUncert< DIMENSIONS, PRECISION, STORAGE >::Content_t = STORAGE<PRECISION>

Type of the bin content array.

Definition at line 299 of file THistData.hxx.

◆ CoordArray_t

template<int DIMENSIONS, class PRECISION , template< class P_ > class STORAGE>
using ROOT::Experimental::THistDataMomentUncert< DIMENSIONS, PRECISION, STORAGE >::CoordArray_t = Hist::CoordArray_t<DIMENSIONS>

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

Definition at line 295 of file THistData.hxx.

◆ Weight_t

template<int DIMENSIONS, class PRECISION , template< class P_ > class STORAGE>
using ROOT::Experimental::THistDataMomentUncert< DIMENSIONS, PRECISION, STORAGE >::Weight_t = PRECISION

The type of the weight and the bin content.

Definition at line 297 of file THistData.hxx.

Constructor & Destructor Documentation

◆ THistDataMomentUncert() [1/2]

template<int DIMENSIONS, class PRECISION , template< class P_ > class STORAGE>
ROOT::Experimental::THistDataMomentUncert< DIMENSIONS, PRECISION, STORAGE >::THistDataMomentUncert ( )
default

◆ THistDataMomentUncert() [2/2]

template<int DIMENSIONS, class PRECISION , template< class P_ > class STORAGE>
ROOT::Experimental::THistDataMomentUncert< DIMENSIONS, PRECISION, STORAGE >::THistDataMomentUncert ( size_t  )
inline

Definition at line 319 of file THistData.hxx.

Member Function Documentation

◆ Fill()

template<int DIMENSIONS, class PRECISION , template< class P_ > class STORAGE>
void ROOT::Experimental::THistDataMomentUncert< DIMENSIONS, PRECISION, STORAGE >::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 322 of file THistData.hxx.

Member Data Documentation

◆ fMomentX2W

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

Definition at line 315 of file THistData.hxx.

◆ fMomentXW

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

Definition at line 314 of file THistData.hxx.


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