This class is meant to be used as a choice for the policy class RootPointPolicy of the CoverTree class. More...
Static Public Member Functions | |
template < typename MatType > | |
static size_t | ChooseRoot (const MatType &) |
Return the point to be used as the root point of the cover tree. More... | |
This class is meant to be used as a choice for the policy class RootPointPolicy of the CoverTree class.
This policy determines which point is used for the root node of the cover tree. This particular implementation simply chooses the first point in the dataset as the root. A more complex implementation might choose, for instance, the point with least maximum distance to other points (the closest to the "middle").
Definition at line 29 of file first_point_is_root.hpp.
|
inlinestatic |
Return the point to be used as the root point of the cover tree.
This just returns 0.
Definition at line 37 of file first_point_is_root.hpp.