17 #ifndef HH_SENF_Utils_StatisticAccumulator_ 18 #define HH_SENF_Utils_StatisticAccumulator_ 1 23 #include <boost/operators.hpp> 24 #include <boost/property_tree/json_parser.hpp> 30 :
public boost::less_than_comparable<StatisticsData>
33 StatisticsData(
float min_,
float avg_,
float max_,
float stddev_,
unsigned cnt_);
38 explicit operator bool()
const;
41 boost::property_tree::ptree
asPTree()
const;
78 void accumulate(T
const & value);
103 unsigned count()
const;
114 explicit operator bool()
const;
130 :
public boost::less_than_comparable<StatisticsEWMA<T>>
135 void clear(T
const & value = T());
137 void accumulate(T
const & value);
138 void accumulateWithLoss(T
const & value,
unsigned numLost);
140 bool operator<(StatisticsEWMA<T>
const & other)
const;
142 explicit operator bool()
const;
145 unsigned count()
const;
148 T
const & ewma()
const;
150 float const & alpha()
const;
Accumulate measurement values.
bool operator<(StatisticsData const &other) const
u8 data[SPECTRAL_HT20_NUM_BINS]
std::ostream & operator<<(std::ostream &os, CpuStat const &cs)
boost::property_tree::ptree asPTree() const