hmbdc
simplify-high-performance-messaging-programming
|
collect sample values and keep histogram for top percentages More...
#include <StatHistogram.hpp>
Public Member Functions | |
StatHistogram (T threshold) | |
bool | add (T sample) |
size_t | sampleSize () const |
StatHistogram< T > & | operator+= (StatHistogram< T > const &other) |
vector< T > | report (vector< float > percentages={0, 1, 10, 50, 90, 99, 100}) const |
void | display (ostream &os, vector< float > percentages={0, 1, 10, 50, 90, 99, 100}) const |
Friends | |
ostream & | operator<< (ostream &os, StatHistogram const &hist) |
collect sample values and keep histogram for top percentages
top values are the smaller values
T | value type that supports less than operator |
DETAILED | if false, the samples are kept in coarser grain and the class's speed performance is better |