27 #ifndef MPBLOCKS_KD_TREE_R2_S1_NEAREST_HPP_
28 #define MPBLOCKS_KD_TREE_R2_S1_NEAREST_HPP_
38 template <
class Traits>
47 template <
class Traits>
56 template <
class Traits>
71 template <
class Traits>
76 return (d2 < m_d2Best);
95 #endif // NEARESTNEIGHBOR_H_
void reset(Format_t inf=std::numeric_limits< Format_t >::max())
Traits::Format_t Format_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...
the node class must be defined in traits since it uses the CTRP, it must derive from kd_tree::Node<Tr...
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...
an NDim dimensional hyperrectangle, represented as a min and max extent