10#ifndef LArSamples_Averager_H
11#define LArSamples_Averager_H
34 bool add(
double xMin = -DBL_MAX,
double xMax = DBL_MAX);
35 bool fill(
const TVectorD& values,
double w = 1);
38 double mean(
unsigned int i)
const;
41 double rms(
unsigned int i)
const;
42 double covariance(
unsigned int i,
unsigned j)
const;
45 TVectorD
means()
const;
storage of the time histories of all the cells
Averager(const Averager &)=default
Averager & operator=(const Averager &other)
bool fill(const TVectorD &values, double w=1)
bool append(const Averager &other)
double covariance(unsigned int i, unsigned j) const
const TMatrixD & sum22Matrix() const
const TVectorD & sum1() const
double mean(unsigned int i) const
const TMatrixD & sum21Matrix() const
bool add(double xMin=-DBL_MAX, double xMax=DBL_MAX)
CovMatrix meanErrorMatrix() const
Averager(unsigned int n=0)
Constructor.
double covarianceError(unsigned int i, unsigned j) const
const TMatrixD & sum11Matrix() const
std::vector< double > m_xMax
double meanError(unsigned int i) const
unsigned int nEntries() const
double rms(unsigned int i) const
double totalWeight() const
CovMatrix covarianceMatrix() const
CovMatrix covarianceMatrixErrors() const
unsigned int nVariables() const
const TVectorD & sum2() const
static double safeSqrt(double x)
TVectorD meanErrors() const
std::vector< double > m_xMin
storage of the time histories of all the cells
TMatrixTSym< double > CovMatrix