#include <center_chooser.h>
Public Types | |
typedef Distance::ResultType | DistanceType |
typedef Distance::ElementType | ElementType |
Public Member Functions | |
GonzalesCenterChooser (const Distance &distance, const std::vector< ElementType * > &points) | |
void | operator() (int k, int *indices, int indices_length, int *centers, int ¢ers_length) |
Chooses the initial centers using the Gonzales algorithm.
Definition at line 154 of file center_chooser.h.
typedef Distance::ResultType rtflann::GonzalesCenterChooser< Distance >::DistanceType |
Reimplemented from rtflann::CenterChooser< Distance >.
Definition at line 158 of file center_chooser.h.
typedef Distance::ElementType rtflann::GonzalesCenterChooser< Distance >::ElementType |
Reimplemented from rtflann::CenterChooser< Distance >.
Definition at line 157 of file center_chooser.h.
rtflann::GonzalesCenterChooser< Distance >::GonzalesCenterChooser | ( | const Distance & | distance, |
const std::vector< ElementType * > & | points | ||
) | [inline] |
Definition at line 164 of file center_chooser.h.
void rtflann::GonzalesCenterChooser< Distance >::operator() | ( | int | k, |
int * | indices, | ||
int | indices_length, | ||
int * | centers, | ||
int & | centers_length | ||
) | [inline, 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 |
Implements rtflann::CenterChooser< Distance >.
Definition at line 167 of file center_chooser.h.