Classes | Typedefs | Functions
Nabo Namespace Reference

Namespace for Nabo. More...

Classes

struct  BruteForceSearch
 Brute-force nearest neighbour. More...
struct  IndexHeapBruteForceVector
 brute-force implementation of heap More...
struct  IndexHeapSTL
 balanced-tree implementation of heap More...
struct  KDTreeUnbalancedPtInLeavesImplicitBoundsStackOpt
 KDTree, unbalanced, points in leaves, stack, implicit bounds, ANN_KD_SL_MIDPT, optimised implementation. More...
struct  NearestNeighbourSearch
 Nearest neighbour search interface, templatized on scalar type. More...
struct  Parameters
 Parameter vector. More...

Typedefs

typedef NearestNeighbourSearch
< double > 
NNSearchD
 nearest neighbour search with scalars of type double
typedef NearestNeighbourSearch
< float > 
NNSearchF
 nearest neighbour search with scalars of type float

Functions

template<typename T , typename A , typename B >
dist2 (const A &v0, const B &v1)
 Euclidean distance.
template<typename T >
getStorageBitCount (T v)
 Return the number of bit required to store a value.
template<typename T >
size_t argMax (const typename NearestNeighbourSearch< T >::Vector &v)
 Return the index of the maximum value of a vector.

Detailed Description

Namespace for Nabo.


Function Documentation

template<typename T >
size_t Nabo::argMax ( const typename NearestNeighbourSearch< T >::Vector &  v)

Return the index of the maximum value of a vector.

Parameters:
vvector
Returns:
index of maximum value, 0 if the vector is empty

Definition at line 77 of file kdtree_cpu.cpp.

template<typename T >
T Nabo::getStorageBitCount ( v)

Return the number of bit required to store a value.

Parameters:
vvalue to store
Returns:
number of bits required

Definition at line 61 of file kdtree_cpu.cpp.



libnabo
Author(s): Stéphane Magnenat
autogenerated on Thu Jan 2 2014 11:15:54