![]() |
ACloudViewer
3.9.4
A Modern Library for 3D Data Processing
|
#include <center_chooser.h>


Public Types | |
| typedef Distance::ElementType | ElementType |
| typedef Distance::ResultType | DistanceType |
Public Types inherited from flann::CenterChooser< Distance > | |
| typedef Distance::ElementType | ElementType |
| typedef Distance::ResultType | DistanceType |
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) |
Public Member Functions inherited from flann::CenterChooser< Distance > | |
| CenterChooser (const Distance &distance, const std::vector< ElementType * > &points) | |
| virtual | ~CenterChooser () |
| void | setDataSize (size_t cols) |
Additional Inherited Members | |
Protected Attributes inherited from flann::CenterChooser< Distance > | |
| const Distance | distance_ |
| const std::vector< ElementType * > & | points_ |
| size_t | cols_ |
Chooses the initial centers using the Gonzales algorithm.
Definition at line 154 of file center_chooser.h.
| typedef Distance::ResultType flann::GonzalesCenterChooser< Distance >::DistanceType |
Definition at line 158 of file center_chooser.h.
| typedef Distance::ElementType flann::GonzalesCenterChooser< Distance >::ElementType |
Definition at line 157 of file center_chooser.h.
|
inline |
Definition at line 164 of file center_chooser.h.
|
inlinevirtual |
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 flann::CenterChooser< Distance >.
Definition at line 167 of file center_chooser.h.
References flann::CenterChooser< Distance >::cols_, dist(), flann::CenterChooser< Distance >::distance_, flann::CenterChooser< Distance >::points_, and flann::rand_int().