Squared Euclidean (L2) distance functor (suitable for low-dimensionality datasets, like 2D or 3D point clouds) Corresponding distance traits: nanoflann::metric_L2_Simple.
T | Type of the elements (e.g. double, float, uint8_t) |
DistanceType | Type of distance variables (must be signed) (e.g. float, double, int64_t) |
Definition at line 346 of file nanoflann.hpp.
#include <mrpt/otherlibs/nanoflann/nanoflann.hpp>
Public Types | |
typedef T | ElementType |
typedef _DistanceType | DistanceType |
Public Member Functions | |
L2_Simple_Adaptor (const DataSource &_data_source) | |
DistanceType | operator() (const T *a, const size_t b_idx, size_t size) const |
template<typename U , typename V > | |
DistanceType | accum_dist (const U a, const V b, int) const |
Public Attributes | |
const DataSource & | data_source |
typedef _DistanceType nanoflann::L2_Simple_Adaptor< T, DataSource, _DistanceType >::DistanceType |
Definition at line 349 of file nanoflann.hpp.
typedef T nanoflann::L2_Simple_Adaptor< T, DataSource, _DistanceType >::ElementType |
Definition at line 348 of file nanoflann.hpp.
|
inline |
Definition at line 353 of file nanoflann.hpp.
|
inline |
Definition at line 360 of file nanoflann.hpp.
|
inline |
Definition at line 355 of file nanoflann.hpp.
const DataSource& nanoflann::L2_Simple_Adaptor< T, DataSource, _DistanceType >::data_source |
Definition at line 351 of file nanoflann.hpp.
Page generated by Doxygen 1.9.6 for MRPT 1.4.0 SVN: at Tue Jan 17 22:40:29 UTC 2023 |