#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 |
Reimplemented in rtflann::GroupWiseCenterChooser< Distance >, rtflann::KMeansppCenterChooser< Distance >, rtflann::GonzalesCenterChooser< Distance >, and rtflann::RandomCenterChooser< Distance >.
Definition at line 78 of file center_chooser.h.
typedef Distance::ElementType rtflann::CenterChooser< Distance >::ElementType |
Reimplemented in rtflann::GroupWiseCenterChooser< Distance >, rtflann::KMeansppCenterChooser< Distance >, rtflann::GonzalesCenterChooser< Distance >, and rtflann::RandomCenterChooser< Distance >.
Definition at line 77 of file center_chooser.h.
rtflann::CenterChooser< Distance >::CenterChooser | ( | const Distance & | distance, |
const std::vector< ElementType * > & | points | ||
) | [inline] |
Definition at line 80 of file center_chooser.h.
virtual rtflann::CenterChooser< Distance >::~CenterChooser | ( | ) | [inline, virtual] |
Definition at line 82 of file center_chooser.h.
virtual void rtflann::CenterChooser< Distance >::operator() | ( | int | k, |
int * | indices, | ||
int | indices_length, | ||
int * | centers, | ||
int & | centers_length | ||
) | [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 >.
void rtflann::CenterChooser< Distance >::setDataSize | ( | size_t | cols | ) | [inline] |
Definition at line 84 of file center_chooser.h.
size_t rtflann::CenterChooser< Distance >::cols_ [protected] |
Definition at line 100 of file center_chooser.h.
const Distance rtflann::CenterChooser< Distance >::distance_ [protected] |
Definition at line 98 of file center_chooser.h.
const std::vector<ElementType*>& rtflann::CenterChooser< Distance >::points_ [protected] |
Definition at line 99 of file center_chooser.h.