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

#include <nanoflann.hpp>

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 dim) const
 
 L2_Simple_Adaptor (const DataSource &_data_source)
 
DistanceType operator() (const T *a, const size_t b_idx, size_t size) const
 

Public Attributes

const DataSource & data_source
 

Detailed Description

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

Squared Euclidean distance functor (suitable for low-dimensionality datasets, like 2D or 3D point clouds) Corresponding distance traits: nanoflann::metric_L2_Simple

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

Member Typedef Documentation

◆ DistanceType

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

Definition at line 379 of file nanoflann.hpp.

◆ ElementType

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

Definition at line 378 of file nanoflann.hpp.

Constructor & Destructor Documentation

◆ L2_Simple_Adaptor()

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

Definition at line 383 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_Simple_Adaptor< T, DataSource, _DistanceType >::accum_dist ( const U  a,
const V  b,
int  dim 
) const
inline

Definition at line 390 of file nanoflann.hpp.

◆ operator()()

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

Definition at line 385 of file nanoflann.hpp.

Member Data Documentation

◆ data_source

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

Definition at line 381 of file nanoflann.hpp.


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


lvr2
Author(s): Thomas Wiemann , Sebastian Pütz , Alexander Mock , Lars Kiesow , Lukas Kalbertodt , Tristan Igelbrink , Johan M. von Behren , Dominik Feldschnieders , Alexander Löhr
autogenerated on Wed Mar 2 2022 00:37:28