35#ifndef _UTILS_STATS_HXX_
36#define _UTILS_STATS_HXX_
46 using FloatType = double;
47 using ValueType = int32_t;
60 max_ = std::numeric_limits<ValueType>::min();
65 void add(ValueType value)
69 FloatType fval = value;
void add(ValueType value)
Appends a data point to the statistics.
uint32_t count_
Number of samples added.
FloatType qsum_
Sum of squares of sample values added.
ValueType max_
Maximum value found since the last clear.
std::string debug_string()
Creates a half-a-line printout of this stats object for debug purposes.
int64_t sum_
Sum of sample values added.