EIC Software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
nanoflann::L1_Adaptor< T, DataSource, _DistanceType > Struct Template Reference

#include <fun4all_coresoftware/blob/master/offline/packages/PHTpcTracker/externals/nanoflann.hpp>

Public Types

typedef T ElementType
 
typedef _DistanceType DistanceType
 
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
 
 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
 

Detailed Description

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

Manhattan distance functor (generic version, optimized for high-dimensionality data sets). Corresponding distance traits: nanoflann::metric_L1

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

View newest version in sPHENIX GitHub at line 269 of file nanoflann.hpp

Member Typedef Documentation

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

Definition at line 272 of file nanoflann.hpp.

View newest version in sPHENIX GitHub at line 272 of file nanoflann.hpp

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

Definition at line 272 of file nanoflann.hpp.

View newest version in sPHENIX GitHub at line 272 of file nanoflann.hpp

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

Definition at line 271 of file nanoflann.hpp.

View newest version in sPHENIX GitHub at line 271 of file nanoflann.hpp

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

Definition at line 271 of file nanoflann.hpp.

View newest version in sPHENIX GitHub at line 271 of file nanoflann.hpp

Constructor & Destructor Documentation

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

Definition at line 276 of file nanoflann.hpp.

View newest version in sPHENIX GitHub at line 276 of file nanoflann.hpp

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

Definition at line 276 of file nanoflann.hpp.

View newest version in sPHENIX GitHub at line 276 of file nanoflann.hpp

Member Function Documentation

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

Definition at line 311 of file nanoflann.hpp.

View newest version in sPHENIX GitHub at line 311 of file nanoflann.hpp

References kdfinder::abs().

+ Here is the call graph for this function:

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

Definition at line 311 of file nanoflann.hpp.

View newest version in sPHENIX GitHub at line 311 of file nanoflann.hpp

References kdfinder::abs().

+ Here is the call graph for this function:

template<class T , class DataSource , typename _DistanceType = T>
DistanceType nanoflann::L1_Adaptor< T, DataSource, _DistanceType >::operator() ( const T a,
const size_t  b_idx,
size_t  size,
DistanceType  worst_dist = -1 
) const
inline

Definition at line 281 of file nanoflann.hpp.

View newest version in sPHENIX GitHub at line 281 of file nanoflann.hpp

References kdfinder::abs(), d, nanoflann::KNNResultSet< DistanceType, IndexType, CountType >::size(), and T.

+ Here is the call graph for this function:

template<class T , class DataSource , typename _DistanceType = T>
DistanceType nanoflann::L1_Adaptor< T, DataSource, _DistanceType >::operator() ( const T a,
const size_t  b_idx,
size_t  size,
DistanceType  worst_dist = -1 
) const
inline

Definition at line 281 of file nanoflann.hpp.

View newest version in sPHENIX GitHub at line 281 of file nanoflann.hpp

References kdfinder::abs(), d, nanoflann::KNNResultSet< DistanceType, IndexType, CountType >::size(), and T.

+ Here is the call graph for this function:

Member Data Documentation

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

Definition at line 274 of file nanoflann.hpp.

View newest version in sPHENIX GitHub at line 274 of file nanoflann.hpp


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