uvgVPCCenc 1.0.0
uvgVPCCenc is an open-source real-time V-PCC encoder library written in C++ from scratch.
Loading...
Searching...
No Matches
Public Types | Public Member Functions | Public Attributes | List of all members
nanoflann::L2_Adaptor< T, DataSource, _DistanceType, IndexType > Struct Template Reference

#include <nanoflann.hpp>

Collaboration diagram for nanoflann::L2_Adaptor< T, DataSource, _DistanceType, IndexType >:

Public Types

using ElementType = T
 
using DistanceType = _DistanceType
 

Public Member Functions

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

Public Attributes

const DataSource & data_source
 

Detailed Description

template<class T, class DataSource, typename _DistanceType = T, typename IndexType = uint32_t>
struct nanoflann::L2_Adaptor< T, DataSource, _DistanceType, IndexType >

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)
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*)

Member Typedef Documentation

◆ DistanceType

template<class T , class DataSource , typename _DistanceType = T, typename IndexType = uint32_t>
using nanoflann::L2_Adaptor< T, DataSource, _DistanceType, IndexType >::DistanceType = _DistanceType

◆ ElementType

template<class T , class DataSource , typename _DistanceType = T, typename IndexType = uint32_t>
using nanoflann::L2_Adaptor< T, DataSource, _DistanceType, IndexType >::ElementType = T

Constructor & Destructor Documentation

◆ L2_Adaptor()

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

Member Function Documentation

◆ accum_dist()

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

◆ evalMetric()

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

Member Data Documentation

◆ data_source

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

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