Simple realvalued range. More...
Public Member Functions  
RangeType ()  
The upper bound. More...  
RangeType (const T point)  
RangeType (const T lo, const T hi)  
Initializes to specified range. More...  
bool  Contains (const T d) const 
Determines if a point is contained within the range. More...  
bool  Contains (const RangeType &r) const 
Determines if another range overlaps with this one. More...  
T  Hi () const 
Get the upper bound. More...  
T &  Hi () 
Modify the upper bound. More...  
T  Lo () const 
Get the lower bound. More...  
T &  Lo () 
Modify the lower bound. More...  
T  Mid () const 
Gets the midpoint of this range. More...  
RangeType  operator & (const RangeType &rhs) const 
Shrinks this range to be the overlap with another range; this makes an empty set if there is no overlap. More...  
RangeType &  operator &= (const RangeType &rhs) 
Shrinks this range to be the overlap with another range; this makes an empty set if there is no overlap. More...  
bool  operator!= (const RangeType &rhs) const 
Compare with another range for strict equality. More...  
RangeType  operator* (const T d) const 
Scale the bounds by the given double. More...  
RangeType &  operator*= (const T d) 
Scale the bounds by the given double. More...  
bool  operator< (const RangeType &rhs) const 
Compare with another range. More...  
bool  operator== (const RangeType &rhs) const 
Compare with another range for strict equality. More...  
bool  operator> (const RangeType &rhs) const 
Compare with another range. More...  
RangeType  operator (const RangeType &rhs) const 
Expands this range to include another range. More...  
RangeType &  operator= (const RangeType &rhs) 
Expands this range to include another range. More...  
template < typename Archive >  
void  serialize (Archive &ar, const unsigned int version) 
Serialize the range object. More...  
T  Width () const 
Gets the span of the range (hi  lo). More...  
Friends  
template < typename TT >  
RangeType< TT >  operator* (const TT d, const RangeType< TT > &r) 
Scale the bounds by the given double. More...  
Simple realvalued range.
It contains an upper and lower bound.
Note that until mlpack 3.0.0, this class is named RangeType<> and for the specification where T is double, you can use math::Range. As of mlpack 3.0.0, this class will be renamed math::Range<>.
T  type of element held by this range. 

inline 
The upper bound.
Initialize to an empty set (where lo > hi).

inline 

inline 
Initializes to specified range.
lo  Lower bound of the range. 
hi  Upper bound of the range. 

inline 
Determines if a point is contained within the range.
d  Point to check. 
Referenced by RangeType< ElemType >::Hi().

inline 
Determines if another range overlaps with this one.
r  Other range. 

inline 
Get the upper bound.
Definition at line 66 of file range.hpp.
Referenced by HollowBallBound< TMetricType, ElemType >::Diameter(), HollowBallBound< TMetricType, ElemType >::MinWidth(), and HollowBallBound< TMetricType, ElemType >::OuterRadius().

inline 
Get the lower bound.
Definition at line 61 of file range.hpp.
Referenced by HollowBallBound< TMetricType, ElemType >::InnerRadius().

inline 
Gets the midpoint of this range.
Referenced by RangeType< ElemType >::Hi().
Shrinks this range to be the overlap with another range; this makes an empty set if there is no overlap.
rhs  Other range. 
Referenced by RangeType< ElemType >::Hi().
Shrinks this range to be the overlap with another range; this makes an empty set if there is no overlap.
rhs  Other range. 
Referenced by RangeType< ElemType >::Hi().

inline 
Compare with another range for strict equality.
rhs  Other range. 
Referenced by RangeType< ElemType >::Hi().

inline 
Scale the bounds by the given double.
d  Scaling factor. 
Referenced by RangeType< ElemType >::Hi().

inline 
Scale the bounds by the given double.
d  Scaling factor. 
Referenced by RangeType< ElemType >::Hi().

inline 
Compare with another range.
For Range objects x and y, x < y means that x is strictly less than y and does not overlap at all.
rhs  Other range. 
Referenced by RangeType< ElemType >::Hi().

inline 
Compare with another range for strict equality.
rhs  Other range. 
Referenced by RangeType< ElemType >::Hi().

inline 
Compare with another range.
For Range objects x and y, x < y means that x is strictly less than y and does not overlap at all.
rhs  Other range. 
Referenced by RangeType< ElemType >::Hi().
Expands this range to include another range.
rhs  Range to include. 
Referenced by RangeType< ElemType >::Hi().
Expands this range to include another range.
rhs  Range to include. 
Referenced by RangeType< ElemType >::Hi().
void serialize  (  Archive &  ar, 
const unsigned int  version  
) 
Serialize the range object.
Referenced by RangeType< ElemType >::Hi().

inline 
Gets the span of the range (hi  lo).
Referenced by RangeType< ElemType >::Hi().
Scale the bounds by the given double.
d  Scaling factor. 