ACloudViewer  3.9.4
A Modern Library for 3D Data Processing
flann::CenterChooser< Distance > Class Template Referenceabstract

#include <center_chooser.h>

Inheritance diagram for flann::CenterChooser< Distance >:

Public Types

typedef Distance::ElementType ElementType
 
typedef Distance::ResultType DistanceType
 

Public Member Functions

 CenterChooser (const Distance &distance, const std::vector< ElementType * > &points)
 
virtual ~CenterChooser ()
 
void setDataSize (size_t cols)
 
virtual void operator() (int k, int *indices, int indices_length, int *centers, int &centers_length)=0
 

Protected Attributes

const Distance distance_
 
const std::vector< ElementType * > & points_
 
size_t cols_
 

Detailed Description

template<typename Distance>
class flann::CenterChooser< Distance >

Definition at line 74 of file center_chooser.h.

Member Typedef Documentation

◆ DistanceType

template<typename Distance >
typedef Distance::ResultType flann::CenterChooser< Distance >::DistanceType

Definition at line 78 of file center_chooser.h.

◆ ElementType

template<typename Distance >
typedef Distance::ElementType flann::CenterChooser< Distance >::ElementType

Definition at line 77 of file center_chooser.h.

Constructor & Destructor Documentation

◆ CenterChooser()

template<typename Distance >
flann::CenterChooser< Distance >::CenterChooser ( const Distance distance,
const std::vector< ElementType * > &  points 
)
inline

Definition at line 80 of file center_chooser.h.

◆ ~CenterChooser()

template<typename Distance >
virtual flann::CenterChooser< Distance >::~CenterChooser ( )
inlinevirtual

Definition at line 82 of file center_chooser.h.

Member Function Documentation

◆ operator()()

template<typename Distance >
virtual void flann::CenterChooser< Distance >::operator() ( int  k,
int *  indices,
int  indices_length,
int *  centers,
int &  centers_length 
)
pure virtual

Chooses cluster centers

Parameters
knumber of centers to choose
indicesindices of points to choose the centers from
indices_lengthlength of indices
centersindices of chosen centers
centers_lengthlength of centers array

Implemented in flann::GroupWiseCenterChooser< Distance >, flann::KMeansppCenterChooser< Distance >, flann::GonzalesCenterChooser< Distance >, and flann::RandomCenterChooser< Distance >.

◆ setDataSize()

template<typename Distance >
void flann::CenterChooser< Distance >::setDataSize ( size_t  cols)
inline

Definition at line 84 of file center_chooser.h.

References flann::CenterChooser< Distance >::cols_.

Member Data Documentation

◆ cols_

◆ distance_

◆ points_


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