#include <vpTree.h>
Public Member Functions | |
| VpTree (std::vector< T > items, VpDistance distance, size_t maxChildren=2) | |
| Constructor. | |
| ~VpTree () | |
| Destructor. | |
| std::vector< T > | search (const T &query, size_t k) |
| Returns the k-nearest neighbors to the query. | |
Public Attributes | |
| VpDistance | _distance |
| |
| VpNode * | _root |
| |
| double | _tau |
| |
| size_t | _maxChildren |
| |
Classes | |
| struct | VpNode |
| Node in the vantage point tree. | |
| struct | VpSearchElement |
| Structure used to search the tree. | |
1.5.5