OpenMS
2.8.0
|
Struct representing the statistics about a set of values. More...
#include <OpenMS/VISUAL/VISITORS/LayerStatistics.h>
Public Member Functions | |
void | addDataPoint (VALUE_TYPE v) |
VALUE_TYPE | getMin () const |
VALUE_TYPE | getMax () const |
size_t | getCount () const |
double | getAvg () const |
get the average value from all calls to addDataPoint() More... | |
Protected Attributes | |
size_t | count_ {0} |
VALUE_TYPE | min_ {std::numeric_limits<VALUE_TYPE>::max()} |
VALUE_TYPE | max_ {std::numeric_limits<VALUE_TYPE>::lowest()} |
VALUE_TYPE | sum_ {0} |
Struct representing the statistics about a set of values.
Min and max are only useful if count > 0
|
inline |
|
inline |
get the average value from all calls to addDataPoint()
References RangeStats< VALUE_TYPE >::count_, and RangeStats< VALUE_TYPE >::sum_.
|
inline |
References RangeStats< VALUE_TYPE >::count_.
|
inline |
References RangeStats< VALUE_TYPE >::max_.
|
inline |
References RangeStats< VALUE_TYPE >::min_.
|
protected |
|
protected |
Referenced by RangeStats< VALUE_TYPE >::addDataPoint(), and RangeStats< VALUE_TYPE >::getMax().
|
protected |
Referenced by RangeStats< VALUE_TYPE >::addDataPoint(), and RangeStats< VALUE_TYPE >::getMin().
|
protected |
Referenced by RangeStats< VALUE_TYPE >::addDataPoint(), and RangeStats< VALUE_TYPE >::getAvg().