27 #ifndef MPBLOCKS_KD_TREE_R2_S1_KNEAREST_H_
28 #define MPBLOCKS_KD_TREE_R2_S1_KNEAREST_H_
37 template <
class Traits,
38 template<
class>
class Allocator = std::allocator >
52 typedef Eigen::Matrix<Format_t,Traits::NDim,1>
Point_t;
53 typedef std::set<Key_t,KeyCompare_t,Allocator_t>
PQueue_t;
103 #endif // NEARESTNEIGHBOR_H_
Traits::HyperRect HyperRect_t
const PQueue_t & result()
virtual bool shouldRecurse(const Point_t &q, const HyperRect_t &r)
evaluate the Euclidean distance from q to it's closest point in r and if that distance is less than t...
virtual void evaluate(const Point_t &q, const Point_t &p, Node_t *n)
calculates Euclidean distance from q to p, and if its less than the current best replaces the current...
Allocator< Key_t > Allocator_t
Interface for nearest node type searches.
provides r2_s1 distance computation
Key_t::Compare KeyCompare_t
Distance< Traits > Distance_t
KNearest(unsigned int k=1)
std::set< Key_t, KeyCompare_t, Allocator_t > PQueue_t
the node class must be defined in traits since it uses the CTRP, it must derive from kd_tree::Node<Tr...
Traits::Format_t Format_t
Eigen::Matrix< Format_t, Traits::NDim, 1 > Point_t
double Format_t
number format (i.e. double, float)
an NDim dimensional hyperrectangle, represented as a min and max extent