yoda is hosted by Hepforge, IPPP Durham
YODA - Yet more Objects for Data Analysis 2.0.2
YODA::XDbnMixin< Derived > Struct Template Reference

CRTP mixin introducing convenience aliases along X axis. More...

#include <DbnUtils.h>

Public Member Functions

Dbn axis scalings
void scaleX (double factor)
 
Dbn statistics
double xMean () const
 
double xVariance () const
 
double xStdDev () const
 
double xStdErr () const
 
double xRMS () const
 
double sumWX () const
 
double sumWX2 () const
 

Detailed Description

template<class Derived>
struct YODA::XDbnMixin< Derived >

CRTP mixin introducing convenience aliases along X axis.

Definition at line 23 of file DbnUtils.h.

Member Function Documentation

◆ scaleX()

template<class Derived >
void YODA::XDbnMixin< Derived >::scaleX ( double  factor)
inline

Definition at line 28 of file DbnUtils.h.

28{ static_cast<Derived*>(this)->scale(1,factor); }

◆ sumWX()

template<class Derived >
double YODA::XDbnMixin< Derived >::sumWX ( ) const
inline

Definition at line 40 of file DbnUtils.h.

40{ return static_cast<const Derived*>(this)->sumW(1); }

◆ sumWX2()

template<class Derived >
double YODA::XDbnMixin< Derived >::sumWX2 ( ) const
inline

Definition at line 41 of file DbnUtils.h.

41{ return static_cast<const Derived*>(this)->sumW2(1); }

◆ xMean()

template<class Derived >
double YODA::XDbnMixin< Derived >::xMean ( ) const
inline

Definition at line 35 of file DbnUtils.h.

35{ return static_cast<const Derived*>(this)->mean(1); }
double mean(const std::vector< int > &sample)
Calculate the mean of a sample.
Definition MathUtils.h:391

References YODA::mean().

◆ xRMS()

template<class Derived >
double YODA::XDbnMixin< Derived >::xRMS ( ) const
inline

Definition at line 39 of file DbnUtils.h.

39{ return static_cast<const Derived*>(this)->RMS(1); }
double RMS(const double sumWX2, const double sumW, const double sumW2)
Calculate the weighted RMS of a sample.
Definition MathUtils.h:489

References YODA::RMS().

◆ xStdDev()

template<class Derived >
double YODA::XDbnMixin< Derived >::xStdDev ( ) const
inline

Definition at line 37 of file DbnUtils.h.

37{ return static_cast<const Derived*>(this)->stdDev(1); }
double stdDev(const double sumWX, const double sumW, const double sumWX2, const double sumW2)
Calculate the weighted standard deviation of a sample.
Definition MathUtils.h:458

References YODA::stdDev().

◆ xStdErr()

template<class Derived >
double YODA::XDbnMixin< Derived >::xStdErr ( ) const
inline

Definition at line 38 of file DbnUtils.h.

38{ return static_cast<const Derived*>(this)->stdErr(1); }
double stdErr(const double sumWX, const double sumW, const double sumWX2, const double sumW2)
Calculate the weighted standard error of a sample.
Definition MathUtils.h:470

References YODA::stdErr().

◆ xVariance()

template<class Derived >
double YODA::XDbnMixin< Derived >::xVariance ( ) const
inline

Definition at line 36 of file DbnUtils.h.

36{ return static_cast<const Derived*>(this)->variance(1); }
double variance(const double sumWX, const double sumW, const double sumWX2, const double sumW2)
Calculate the weighted variance of a sample.
Definition MathUtils.h:421

References YODA::variance().


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