HDK
|
Templated class to compute the minimum and maximum values. More...
#include <Stats.h>
Public Member Functions | |
MinMax () | |
Empty constructor. More... | |
MinMax (const ValueType &min, const ValueType &max) | |
Constructor. More... | |
void | add (const ValueType &val, const Less &less=Less()) |
Add a single sample. More... | |
const ValueType & | min () const |
Return the minimum value. More... | |
const ValueType & | max () const |
Return the maximum value. More... | |
void | add (const MinMax &other, const Less &less=Less()) |
Add the samples from the other Stats instance. More... | |
void | print (const std::string &name="", std::ostream &strm=std::cout, int precision=3) const |
Print MinMax to the specified output stream. More... | |
Protected Attributes | |
ValueType | mMin |
ValueType | mMax |
Templated class to compute the minimum and maximum values.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
protected |
|
protected |