#include <userver/utils/statistics/min_max_avg.hpp>
Class for concurrent safe calculation of minimum, maximum and average over series of values.
Definition at line 23 of file min_max_avg.hpp.
Classes | |
struct | Current |
Public Member Functions | |
MinMaxAvg (const MinMaxAvg &other) noexcept | |
MinMaxAvg & | operator= (const MinMaxAvg &rhs) noexcept |
Current | GetCurrent () const |
void | Account (ValueType value) |
template<class Duration = std::chrono::seconds> | |
void | Add (const MinMaxAvg &other, Duration this_epoch_duration=Duration(), Duration before_this_epoch_duration=Duration()) |
void | Reset () |
bool | IsEmpty () const noexcept |
|
inlineconstexprnoexcept |
Definition at line 45 of file min_max_avg.hpp.
|
inlinenoexcept |
Definition at line 48 of file min_max_avg.hpp.
|
inline |
Definition at line 74 of file min_max_avg.hpp.
|
inline |
Definition at line 92 of file min_max_avg.hpp.
|
inline |
Definition at line 61 of file min_max_avg.hpp.
|
inlinenoexcept |
Definition at line 126 of file min_max_avg.hpp.
|
inlinenoexcept |
Definition at line 50 of file min_max_avg.hpp.
|
inline |
Definition at line 119 of file min_max_avg.hpp.