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

#include <center_chooser.h>

Inheritance diagram for flann::RandomCenterChooser< Distance >:
Collaboration diagram for flann::RandomCenterChooser< Distance >:

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

 RandomCenterChooser (const Distance &distance, const std::vector< ElementType * > &points)
 
void operator() (int k, int *indices, int indices_length, int *centers, int &centers_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_
 

Detailed Description

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

Definition at line 105 of file center_chooser.h.

Member Typedef Documentation

◆ DistanceType

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

Definition at line 109 of file center_chooser.h.

◆ ElementType

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

Definition at line 108 of file center_chooser.h.

Constructor & Destructor Documentation

◆ RandomCenterChooser()

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

Definition at line 114 of file center_chooser.h.

Member Function Documentation

◆ operator()()

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

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

Implements flann::CenterChooser< Distance >.

Definition at line 117 of file center_chooser.h.

References flann::CenterChooser< Distance >::cols_, flann::CenterChooser< Distance >::distance_, flann::UniqueRandom::next(), and flann::CenterChooser< Distance >::points_.


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