#include <Accumulator.h>
Public Member Functions | |
std::vector< std::vector < double > > | c (n, std::vector< double >(n)) |
void | Clear (const unsigned init=0) |
Covariance (const unsigned int nVar) | |
unsigned int | GetCount () const |
void | operator() () |
void | operator() (const std::vector< T > &values) |
unsigned int | operator++ () |
return (fSumXY[n *i+j]-double(fSumX[i]*fSumX[j])/GetCount())/(GetCount()-1) | |
std::vector< double > | v (n) |
Public Attributes | |
c [i][j] = GetCovariance(i, j) | |
return | c |
std::vector< double > | const |
double | const |
std::vector< std::vector < double > > | const |
m [i] = double(fSumX[i]) / GetCount() | |
return | m |
const unsigned int | n = fSumX.size() |
return | s |
v [i] = (fSumXY[(n+1)*i] - double(Sqr(fSumX[i]))/GetCount()) / (GetCount() - 1) | |
return | v |
x = std::sqrt(x) | |
Private Attributes | |
std::vector< T > | fSumX |
std::vector< T > | fSumXY |
Definition at line 98 of file Tools/CIC/utl/Accumulator.h.
|
inlineexplicit |
Definition at line 100 of file Tools/CIC/utl/Accumulator.h.
std::vector<std::vector<double> > utl::Accumulator::Covariance< T >::c | ( | n | , |
std::vector< double > | n | ||
) |
|
inlineinherited |
Definition at line 22 of file Tools/CIC/utl/Accumulator.h.
References utl::Accumulator::Count::fCount.
Referenced by utl::Accumulator::Mean::Clear().
|
inlineinherited |
Definition at line 21 of file Tools/CIC/utl/Accumulator.h.
References utl::Accumulator::Count::fCount.
Referenced by utl::Accumulator::Mean::GetMean(), and utl::Accumulator::Var::GetVar().
|
inlineinherited |
Definition at line 19 of file Tools/CIC/utl/Accumulator.h.
References utl::Accumulator::Count::fCount.
Referenced by utl::Accumulator::Covariance< T >::operator()(), utl::Accumulator::Mean::operator()(), utl::Accumulator::Var::operator()(), utl::Accumulator::Std::operator()(), and utl::Accumulator::Count::operator++().
|
inline |
Definition at line 104 of file Tools/CIC/utl/Accumulator.h.
References utl::Accumulator::Covariance< T >::fSumX, utl::Accumulator::Covariance< T >::fSumXY, utl::Accumulator::Covariance< T >::n, and utl::Accumulator::Count::operator()().
|
inlineinherited |
Definition at line 20 of file Tools/CIC/utl/Accumulator.h.
References utl::Accumulator::Count::fCount, and utl::Accumulator::Count::operator()().
utl::Accumulator::Covariance< T >::return | ( | fSumXY- | double(fSumX[i]*fSumX[j])/GetCount()[n *i+j] | ) |
std::vector<double> utl::Accumulator::Covariance< T >::v | ( | n | ) |
utl::Accumulator::Covariance< T >::c[i][j] = GetCovariance(i, j) |
Definition at line 163 of file Tools/CIC/utl/Accumulator.h.
return utl::Accumulator::Covariance< T >::c |
Definition at line 164 of file Tools/CIC/utl/Accumulator.h.
std::vector< double > utl::Accumulator::Covariance< T >::const |
Definition at line 117 of file Tools/CIC/utl/Accumulator.h.
double utl::Accumulator::Covariance< T >::const |
Definition at line 148 of file Tools/CIC/utl/Accumulator.h.
std::vector<std::vector<double> > utl::Accumulator::Covariance< T >::const |
Definition at line 158 of file Tools/CIC/utl/Accumulator.h.
|
private |
Definition at line 168 of file Tools/CIC/utl/Accumulator.h.
Referenced by utl::Accumulator::Covariance< T >::operator()().
|
private |
Definition at line 169 of file Tools/CIC/utl/Accumulator.h.
Referenced by utl::Accumulator::Covariance< T >::operator()().
utl::Accumulator::Covariance< T >::m[i] = double(fSumX[i]) / GetCount() |
Definition at line 120 of file Tools/CIC/utl/Accumulator.h.
return utl::Accumulator::Covariance< T >::m |
Definition at line 121 of file Tools/CIC/utl/Accumulator.h.
const unsigned int utl::Accumulator::Covariance< T >::n = fSumX.size() |
Definition at line 151 of file Tools/CIC/utl/Accumulator.h.
Referenced by utl::Accumulator::Covariance< T >::operator()().
return utl::Accumulator::Covariance< T >::s |
Definition at line 142 of file Tools/CIC/utl/Accumulator.h.
utl::Accumulator::Covariance< T >::v[i] = (fSumXY[(n+1)*i] - double(Sqr(fSumX[i]))/GetCount()) / (GetCount() - 1) |
Definition at line 131 of file Tools/CIC/utl/Accumulator.h.
return utl::Accumulator::Covariance< T >::v |
Definition at line 132 of file Tools/CIC/utl/Accumulator.h.
utl::Accumulator::Covariance< T >::x = std::sqrt(x) |
Definition at line 141 of file Tools/CIC/utl/Accumulator.h.