Clipper
Public Member Functions | List of all members
clipper::Range< T > Class Template Reference

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
 
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 )
 
truncate (const T &datum) const
 truncate data to be within range
 

Detailed Description

template<class T = ftype>
class clipper::Range< T >

Range - upper and lower bounds of some type.


The documentation for this class was generated from the following file: