27 #ifndef MPBLOCKS_KD_TREE_EUCLIDEAN_NEAREST_H_
28 #define MPBLOCKS_KD_TREE_EUCLIDEAN_NEAREST_H_
37 template <
class Traits>
48 typedef Eigen::Matrix<Format_t,Traits::NDim,1>
Point_t;
59 void reset(
Format_t inf = std::numeric_limits<Format_t>::max() );
90 #endif // NEARESTNEIGHBOR_H_
provides euclidean distance computation
HyperRect< Traits > HyperRect_t
Distance< Traits > Distance_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...
Interface for nearest node type searches.
void reset(Format_t inf=std::numeric_limits< Format_t >::max())
the node class must be defined in traits since it uses the CTRP, it must derive from kd_tree::Node<Tr...
provides a search algorithm for finding the nearest point in the kd tree to some query point...
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...
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