Clipper
|
Range - upper and lower bounds of some type. More...
#include <clipper_stats.h>
Public Member Functions | |
Range () | |
null constructor | |
Range (const T &min, const T &max) | |
constructor | |
const T & | min () const |
minimum value | |
const T & | max () const |
maximum value | |
T | range () const |
range = max - min | |
void | include (const T &datum) |
update limits to include a new datum | |
bool | contains (const T &datum) const |
test if data is within limits ( min <= datum <= max ) | |
T | truncate (const T &datum) const |
truncate data to be within range |
Range - upper and lower bounds of some type.