27 #ifndef MPBLOCKS_KD_TREE_R2_S1_BLOCKS_KNEAREST_H_
28 #define MPBLOCKS_KD_TREE_R2_S1_BLOCKS_KNEAREST_H_
39 template<
class>
class Allocator = std::allocator >
46 typedef Eigen::Matrix<Format_t,Traits::NDim,1>
Point_t;
74 typename PQueue_t::const_iterator iKey;
75 for( iKey = list.begin(); iKey != list.end(); ++iKey )
102 #endif // NEARESTNEIGHBOR_H_
const PQueue_t & result()
Traits::Format_t Format_t
void findNearest(const Point_t &q, NNIface_t &search)
generic NN search, specific search depends on the implementing class of the NNIface ...
void search(const Point_t &q, unsigned int k)
KNearest< Traits, Allocator > This_t
void setTree(Tree_t *tree)
r2_s1::KNearest< Traits, Allocator > Search_t
sigc::slot< void, const Point_t &, unsigned int > slot_search()
Search_t::PQueue_t PQueue_t
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...
example traits class, can also be used as a default if you're lazy and your problem happens to be 2d ...
sigc::signal< void, Node_t * > sig_result
Eigen::Matrix< Format_t, Traits::NDim, 1 > Point_t
double Format_t
number format (i.e. double, float)