1 #ifndef _utl_Accumulator_h_
2 #define _utl_Accumulator_h_
8 #include <boost/shared_ptr.hpp>
14 namespace Accumulator {
58 class MinMax :
public Min<T>,
public Max<T> {
62 MinMax(
const T firstMin,
const T firstMax) :
Min<T>(firstMin),
Max<T>(firstMax) { }
89 explicit operator bool()
const {
return fN; }
152 template<
typename AccumulatorT>
159 AccumulatorT::operator()(x);
161 AccumulatorT::Clear(x);
166 explicit operator bool()
const {
return IsValid(); }
void operator()(const double x)
void operator()(const double x)
constexpr T Sqr(const T &x)
MinMax(const T firstMin, const T firstMax)
double GetAverageError() const
void operator()(const double x)
void operator()(const double x)
double GetAverage(const int n) const
void operator()(const double x)
double GetStandardDeviation(const int n) const
SampleStandardDeviationN fY
SampleStandardDeviation fX
void Clear(const T min, const T max)
double GetAverageX() const
double GetStandardDeviation() const
double GetCorrelationCoefficient() const
void operator()(const T x)
void operator()(const typename AccumulatorT::Type x)
double GetStandardDeviationX() const
void operator()(const T x)
unsigned int GetN() const
double GetVariance(const int n) const
double GetAverageXY() const
double GetVariance() const
double GetSumOfSquares() const
void operator()(const T x)
double GetAverage() const
void Validate(const bool state=true)
double GetAverageError(const int n) const
MinMaxAverage(const T first)
void operator()(const double x, const double y)
Accumulates and calculates standard deviation.
Type
The type of file that we are acutally opening.
SampleVarianceN fVariance
double GetStandardDeviationY() const
void operator()(const double x)
double GetAverageY() const
void operator()(const T x)
double GetSumOfSquares() const