Public Types | Public Member Functions | List of all members
rtflann::GonzalesCenterChooser< Distance > Class Template Reference

#include <center_chooser.h>

Inheritance diagram for rtflann::GonzalesCenterChooser< Distance >:
Inheritance graph
[legend]

Public Types

typedef Distance::ResultType DistanceType
 
typedef Distance::ElementType ElementType
 
- Public Types inherited from rtflann::CenterChooser< Distance >
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 &centers_length)
 
- Public Member Functions inherited from rtflann::CenterChooser< Distance >
 CenterChooser (const Distance &distance, const std::vector< ElementType * > &points)
 
void setDataSize (size_t cols)
 
virtual ~CenterChooser ()
 

Additional Inherited Members

- Protected Attributes inherited from rtflann::CenterChooser< Distance >
size_t cols_
 
const Distance distance_
 
const std::vector< ElementType * > & points_
 

Detailed Description

template<typename Distance>
class rtflann::GonzalesCenterChooser< Distance >

Chooses the initial centers using the Gonzales algorithm.

Definition at line 154 of file center_chooser.h.

Member Typedef Documentation

◆ DistanceType

template<typename Distance >
typedef Distance::ResultType rtflann::GonzalesCenterChooser< Distance >::DistanceType

Definition at line 158 of file center_chooser.h.

◆ ElementType

template<typename Distance >
typedef Distance::ElementType rtflann::GonzalesCenterChooser< Distance >::ElementType

Definition at line 157 of file center_chooser.h.

Constructor & Destructor Documentation

◆ GonzalesCenterChooser()

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

Definition at line 164 of file center_chooser.h.

Member Function Documentation

◆ operator()()

template<typename Distance >
void rtflann::GonzalesCenterChooser< 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 rtflann::CenterChooser< Distance >.

Definition at line 167 of file center_chooser.h.


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


rtabmap
Author(s): Mathieu Labbe
autogenerated on Thu Jul 25 2024 02:50:28