Public Types | Public Member Functions | Public Attributes
nanoflann::L2_Adaptor< T, DataSource, _DistanceType > Struct Template Reference

#include <nanoflann.hpp>

List of all members.

Public Types

typedef _DistanceType DistanceType
typedef T ElementType

Public Member Functions

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

Public Attributes

const DataSource & data_source

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 297 of file nanoflann.hpp.


Member Typedef Documentation

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

Definition at line 300 of file nanoflann.hpp.

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

Definition at line 299 of file nanoflann.hpp.


Constructor & Destructor Documentation

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

Definition at line 304 of file nanoflann.hpp.


Member Function Documentation

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 334 of file nanoflann.hpp.

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 306 of file nanoflann.hpp.


Member Data Documentation

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

Definition at line 302 of file nanoflann.hpp.


The documentation for this struct was generated from the following file:


shape_reconstruction
Author(s): Roberto Martín-Martín
autogenerated on Sat Jun 8 2019 18:41:08