vp树
代码说明:
#ifndef _VPTREE_HEADER_ #define _VPTREE_HEADER_ #include #include #include #include #include #include template class VpTree { public: VpTree() : _root(0) {} ~VpTree() { delete _root; } void create( const std::vector& items ) { delete _root; _items = items; _root = buildFromPoints(0, items.size()); } void search( const T& target, int k, std::vector* results, std::vector* distances)
下载说明:请别用迅雷下载,失败请重下,重下不扣分!