CoastalME (Coastal Modelling Environment)
Simulates the long-term behaviour of complex coastlines
Loading...
Searching...
No Matches
nanoflann::L2_Simple_Adaptor< T, DataSource, _DistanceType, IndexType > Struct Template Reference

#include <nanoflann.hpp>

Public Types

using ElementType = T
 
using DistanceType = _DistanceType
 

Public Member Functions

 L2_Simple_Adaptor (const DataSource &_data_source)
 
DistanceType evalMetric (const T *a, const IndexType b_idx, size_t size) const
 
template<typename U, typename V>
DistanceType accum_dist (const U a, const V b, const size_t) const
 

Data Fields

const DataSource & data_source
 

Detailed Description

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

Squared Euclidean (L2) 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)
DataSourceSource of the data, i.e. where the vectors are stored
_DistanceTypeType of distance variables (must be signed)
IndexTypeType of the arguments with which the data can be accessed (e.g. float, double, int64_t, T*)

Definition at line 626 of file nanoflann.hpp.

Member Typedef Documentation

◆ DistanceType

template<class T, class DataSource, typename _DistanceType = T, typename IndexType = size_t>
using nanoflann::L2_Simple_Adaptor< T, DataSource, _DistanceType, IndexType >::DistanceType = _DistanceType

Definition at line 629 of file nanoflann.hpp.

◆ ElementType

template<class T, class DataSource, typename _DistanceType = T, typename IndexType = size_t>
using nanoflann::L2_Simple_Adaptor< T, DataSource, _DistanceType, IndexType >::ElementType = T

Definition at line 628 of file nanoflann.hpp.

Constructor & Destructor Documentation

◆ L2_Simple_Adaptor()

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

Definition at line 633 of file nanoflann.hpp.

Member Function Documentation

◆ accum_dist()

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

Definition at line 652 of file nanoflann.hpp.

◆ evalMetric()

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

Definition at line 638 of file nanoflann.hpp.

Field Documentation

◆ data_source

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

Definition at line 631 of file nanoflann.hpp.


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