#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)