#include <center_chooser.h>
Public Types | |
typedef Distance::ResultType | DistanceType |
typedef Distance::ElementType | ElementType |
Public Member Functions | |
CenterChooser (const Distance &distance, const std::vector< ElementType * > &points) | |
virtual void | operator() (int k, int *indices, int indices_length, int *centers, int ¢ers_length)=0 |
void | setDataSize (size_t cols) |
virtual | ~CenterChooser () |
Protected Attributes | |
size_t | cols_ |
const Distance | distance_ |
const std::vector< ElementType * > & | points_ |
Definition at line 74 of file center_chooser.h.
typedef Distance::ResultType rtflann::CenterChooser< Distance >::DistanceType |
Definition at line 78 of file center_chooser.h.
typedef Distance::ElementType rtflann::CenterChooser< Distance >::ElementType |
Definition at line 77 of file center_chooser.h.
|
inline |
Definition at line 80 of file center_chooser.h.
|
inlinevirtual |
Definition at line 82 of file center_chooser.h.
|
pure virtual |
Chooses cluster centers
k | number of centers to choose |
indices | indices of points to choose the centers from |
indices_length | length of indices |
centers | indices of chosen centers |
centers_length | length of centers array |
Implemented in rtflann::GroupWiseCenterChooser< Distance >, rtflann::KMeansppCenterChooser< Distance >, rtflann::GonzalesCenterChooser< Distance >, and rtflann::RandomCenterChooser< Distance >.
|
inline |
Definition at line 84 of file center_chooser.h.
|
protected |
Definition at line 100 of file center_chooser.h.
|
protected |
Definition at line 98 of file center_chooser.h.
|
protected |
Definition at line 99 of file center_chooser.h.