Template Class Accumulator

Class Documentation

template<typename T = double>
class Accumulator

Public Functions

inline void add(const T &value)

add a value

Parameters:

value – value to add

inline long double mean() const

get the mean value

inline T min() const

get the minimum value

inline T max() const

get the maximum value

inline unsigned int count() const

get the number of values used to build this statistic

Friends

template<typename U>
friend std::ostream &operator<<(std::ostream &os, const Accumulator<U> &accumulator)