MRPT  1.9.9
List of all members | Public Types | Public Member Functions | Public Attributes
nanoflann::L2_Adaptor< T, DataSource, _DistanceType > Struct Template Reference

Detailed Description

template<class T, class DataSource, typename _DistanceType = T>
struct nanoflann::L2_Adaptor< T, DataSource, _DistanceType >

Squared Euclidean distance functor (generic version, optimized for high-dimensionality data sets).

Corresponding distance traits: nanoflann::metric_L2

Template Parameters
TType of the elements (e.g. double, float, uint8_t)
_DistanceTypeType of distance variables (must be signed) (e.g. float, double, int64_t)

Definition at line 306 of file nanoflann.hpp.

#include <nanoflann.hpp>

Public Types

typedef T ElementType
 
typedef _DistanceType DistanceType
 

Public Member Functions

 L2_Adaptor (const DataSource &_data_source)
 
DistanceType operator() (const T *a, const size_t b_idx, size_t size, DistanceType worst_dist=-1) const
 
template<typename U , typename V >
DistanceType accum_dist (const U a, const V b, int) const
 

Public Attributes

const DataSource & data_source
 

Member Typedef Documentation

◆ DistanceType

template<class T , class DataSource , typename _DistanceType = T>
typedef _DistanceType nanoflann::L2_Adaptor< T, DataSource, _DistanceType >::DistanceType

Definition at line 309 of file nanoflann.hpp.

◆ ElementType

template<class T , class DataSource , typename _DistanceType = T>
typedef T nanoflann::L2_Adaptor< T, DataSource, _DistanceType >::ElementType

Definition at line 308 of file nanoflann.hpp.

Constructor & Destructor Documentation

◆ L2_Adaptor()

template<class T , class DataSource , typename _DistanceType = T>
nanoflann::L2_Adaptor< T, DataSource, _DistanceType >::L2_Adaptor ( const DataSource &  _data_source)
inline

Definition at line 313 of file nanoflann.hpp.

Member Function Documentation

◆ accum_dist()

template<class T , class DataSource , typename _DistanceType = T>
template<typename U , typename V >
DistanceType nanoflann::L2_Adaptor< T, DataSource, _DistanceType >::accum_dist ( const U  a,
const V  b,
int   
) const
inline

Definition at line 343 of file nanoflann.hpp.

◆ operator()()

template<class T , class DataSource , typename _DistanceType = T>
DistanceType nanoflann::L2_Adaptor< T, DataSource, _DistanceType >::operator() ( const T *  a,
const size_t  b_idx,
size_t  size,
DistanceType  worst_dist = -1 
) const
inline

Definition at line 315 of file nanoflann.hpp.

References nanoflann::KNNResultSet< DistanceType, IndexType, CountType >::size().

Here is the call graph for this function:

Member Data Documentation

◆ data_source

template<class T , class DataSource , typename _DistanceType = T>
const DataSource& nanoflann::L2_Adaptor< T, DataSource, _DistanceType >::data_source

Definition at line 311 of file nanoflann.hpp.




Page generated by Doxygen 1.8.14 for MRPT 1.9.9 Git: 5ec5114f2 Thu Feb 20 07:54:08 2020 +0100 at jue feb 20 08:00:10 CET 2020