27 #ifndef MPBLOCKS_KD_TREE_R2_S1_NEAREST_H_
28 #define MPBLOCKS_KD_TREE_R2_S1_NEAREST_H_
36 template <
class Traits>
47 typedef Eigen::Matrix<Format_t,Traits::NDim,1>
Point_t;
61 void reset(
Format_t inf = std::numeric_limits<Format_t>::max() );
92 #endif // NEARESTNEIGHBOR_H_
Distance_t & distFn()
expose distance function
void reset(Format_t inf=std::numeric_limits< Format_t >::max())
Traits::Format_t Format_t
Eigen::Matrix< Format_t, Traits::NDim, 1 > Point_t
HyperRect< Traits > HyperRect_t
an NDim dimensional hyperrectangle, represented as a min and max extent
Interface for nearest node type searches.
Traits::Format_t Format_t
provides r2_s1 distance computation
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...
double Format_t
number format (i.e. double, float)
Distance< Traits > Distance_t