MRPT
1.9.9
|
Manhattan distance functor (generic version, optimized for high-dimensionality data sets).
Corresponding distance traits: nanoflann::metric_L1
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 258 of file nanoflann.hpp.
#include <nanoflann.hpp>
Public Types | |
typedef T | ElementType |
typedef _DistanceType | DistanceType |
Public Member Functions | |
L1_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 |
typedef _DistanceType nanoflann::L1_Adaptor< T, DataSource, _DistanceType >::DistanceType |
Definition at line 261 of file nanoflann.hpp.
typedef T nanoflann::L1_Adaptor< T, DataSource, _DistanceType >::ElementType |
Definition at line 260 of file nanoflann.hpp.
|
inline |
Definition at line 265 of file nanoflann.hpp.
|
inline |
Definition at line 294 of file nanoflann.hpp.
|
inline |
Definition at line 267 of file nanoflann.hpp.
References nanoflann::KNNResultSet< DistanceType, IndexType, CountType >::size().
const DataSource& nanoflann::L1_Adaptor< T, DataSource, _DistanceType >::data_source |
Definition at line 263 of file nanoflann.hpp.
Page generated by Doxygen 1.8.14 for MRPT 1.9.9 Git: c7a3bec24 Sun Mar 29 18:33:13 2020 +0200 at dom mar 29 18:50:38 CEST 2020 |