|
| HRectBound () |
| Empty constructor; creates a bound of dimensionality 0. More...
|
|
| HRectBound (const size_t dimension) |
| Initializes to specified dimensionality with each dimension the empty set. More...
|
|
| HRectBound (const HRectBound &other) |
| Copy constructor; necessary to prevent memory leaks. More...
|
|
HRectBound & | operator= (const HRectBound &other) |
| Same as copy constructor; necessary to prevent memory leaks. More...
|
|
| HRectBound (HRectBound &&other) |
| Move constructor: take possession of another bound's information.
|
|
HRectBound & | operator= (HRectBound &&other) |
| Move assignment operator.
|
|
| ~HRectBound () |
| Destructor: clean up memory.
|
|
void | Clear () |
| Resets all dimensions to the empty set (so that this bound contains nothing). More...
|
|
size_t | Dim () const |
| Gets the dimensionality.
|
|
math::RangeType< ElemType > & | operator[] (const size_t i) |
| Get the range for a particular dimension. More...
|
|
const math::RangeType< ElemType > & | operator[] (const size_t i) const |
| Modify the range for a particular dimension. No bounds checking.
|
|
ElemType | MinWidth () const |
| Get the minimum width of the bound.
|
|
ElemType & | MinWidth () |
| Modify the minimum width of the bound.
|
|
const MetricType & | Metric () const |
| Get the instantiated metric associated with the bound.
|
|
MetricType & | Metric () |
| Modify the instantiated metric associated with the bound.
|
|
void | Center (arma::Col< ElemType > ¢er) const |
| Calculates the center of the range, placing it into the given vector. More...
|
|
ElemType | Volume () const |
| Calculate the volume of the hyperrectangle. More...
|
|
template<typename VecType > |
ElemType | MinDistance (const VecType &point, typename std::enable_if_t< IsVector< VecType >::value > *=0) const |
| Calculates minimum bound-to-point distance. More...
|
|
ElemType | MinDistance (const HRectBound &other) const |
| Calculates minimum bound-to-bound distance. More...
|
|
template<typename VecType > |
ElemType | MaxDistance (const VecType &point, typename std::enable_if_t< IsVector< VecType >::value > *=0) const |
| Calculates maximum bound-to-point squared distance. More...
|
|
ElemType | MaxDistance (const HRectBound &other) const |
| Computes maximum distance. More...
|
|
math::RangeType< ElemType > | RangeDistance (const HRectBound &other) const |
| Calculates minimum and maximum bound-to-bound distance. More...
|
|
template<typename VecType > |
math::RangeType< ElemType > | RangeDistance (const VecType &point, typename std::enable_if_t< IsVector< VecType >::value > *=0) const |
| Calculates minimum and maximum bound-to-point distance. More...
|
|
template<typename MatType > |
HRectBound & | operator|= (const MatType &data) |
| Expands this region to include new points. More...
|
|
HRectBound & | operator|= (const HRectBound &other) |
| Expands this region to encompass another bound.
|
|
template<typename VecType > |
bool | Contains (const VecType &point) const |
| Determines if a point is within this bound. More...
|
|
bool | Contains (const HRectBound &bound) const |
| Determines if this bound partially contains a bound. More...
|
|
HRectBound | operator & (const HRectBound &bound) const |
| Returns the intersection of this bound and another.
|
|
HRectBound & | operator &= (const HRectBound &bound) |
| Intersects this bound with another.
|
|
ElemType | Overlap (const HRectBound &bound) const |
| Returns the volume of overlap of this bound and another.
|
|
ElemType | Diameter () const |
| Returns the diameter of the hyperrectangle (that is, the longest diagonal).
|
|
template<typename Archive > |
void | serialize (Archive &ar, const uint32_t version) |
| Serialize the bound object.
|
|
template<typename MatType > |
HRectBound< MetricType, ElemType > & | operator|= (const MatType &data) |
| Expands this region to include a new point.
|
|
template<typename MetricType = metric::LMetric<2, true>, typename ElemType = double>
class mlpack::bound::HRectBound< MetricType, ElemType >
Hyper-rectangle bound for an L-metric.
This should be used in conjunction with the LMetric class. Be sure to use the same template parameters for LMetric as you do for HRectBound – otherwise odd results may occur.
- Template Parameters
-
MetricType | Type of metric to use; must be of type LMetric. |
ElemType | Element type (double/float/int/etc.). |