NPL
Neurological Programs and Libraries
|
#include <kdtree.h>
Public Member Functions | |
KDTree () | |
Constructor. More... | |
KDTree (KDTree &&other) | |
KDTree (const KDTree &other) | |
~KDTree () | |
void | insert (const std::vector< T > &pt, const std::vector< D > &data) |
Insert a node (note that this is not dynamic, new nodes won't be found by search until build() is called) More... | |
void | insert (size_t plen, const T *pt, size_t dlen, const D *data) |
Insert a node (note that this is not dynamic, new nodes won't be found by search until build() is called) More... | |
void | build () |
Create Tree, until this is called search won't find anything. More... | |
bool | built () |
void | clear () |
Remove all elements. More... | |
const KDTreeNode< K, E, T, D > * | nearest (const std::vector< T > &pt, double &dist) const |
const KDTreeNode< K, E, T, D > * | nearest (size_t len, const T *pt, double &dist) const |
std::list< const KDTreeNode< K, E, T, D > * > | withindist (const std::vector< T > &pt, double dist) const |
std::list< const KDTreeNode< K, E, T, D > * > | withindist (size_t len, const T *pt, double dist) const |
|
inline |
|
inline |
|
inline |
|
inline |
void npl::KDTree< K, E, T, D >::build | ( | ) |
Create Tree, until this is called search won't find anything.
|
inline |
void npl::KDTree< K, E, T, D >::clear | ( | ) |
Remove all elements.
void npl::KDTree< K, E, T, D >::insert | ( | const std::vector< T > & | pt, |
const std::vector< D > & | data | ||
) |
Insert a node (note that this is not dynamic, new nodes won't be found by search until build() is called)
pt | Point |
data | Node Data |
void npl::KDTree< K, E, T, D >::insert | ( | size_t | plen, |
const T * | pt, | ||
size_t | dlen, | ||
const D * | data | ||
) |
Insert a node (note that this is not dynamic, new nodes won't be found by search until build() is called)
plen | Length of point array |
pt | Point |
dlen | Length of data array |
data | Node Data |
const KDTreeNode<K,E,T,D>* npl::KDTree< K, E, T, D >::nearest | ( | const std::vector< T > & | pt, |
double & | dist | ||
) | const |
const KDTreeNode<K,E,T,D>* npl::KDTree< K, E, T, D >::nearest | ( | size_t | len, |
const T * | pt, | ||
double & | dist | ||
) | const |
std::list<const KDTreeNode<K,E,T,D>*> npl::KDTree< K, E, T, D >::withindist | ( | const std::vector< T > & | pt, |
double | dist | ||
) | const |
std::list<const KDTreeNode<K,E,T,D>*> npl::KDTree< K, E, T, D >::withindist | ( | size_t | len, |
const T * | pt, | ||
double | dist | ||
) | const |