Public Types | Public Member Functions | Protected Attributes
rtflann::CenterChooser< Distance > Class Template Reference

#include <center_chooser.h>

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

List of all members.

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 &centers_length)=0
void setDataSize (size_t cols)
virtual ~CenterChooser ()

Protected Attributes

size_t cols_
const Distance distance_
const std::vector< ElementType * > & points_

Detailed Description

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

Definition at line 74 of file center_chooser.h.


Member Typedef Documentation

template<typename Distance >
typedef Distance::ResultType rtflann::CenterChooser< Distance >::DistanceType
template<typename Distance >
typedef Distance::ElementType rtflann::CenterChooser< Distance >::ElementType

Constructor & Destructor Documentation

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

Definition at line 80 of file center_chooser.h.

template<typename Distance >
virtual rtflann::CenterChooser< Distance >::~CenterChooser ( ) [inline, virtual]

Definition at line 82 of file center_chooser.h.


Member Function Documentation

template<typename Distance >
virtual void rtflann::CenterChooser< Distance >::operator() ( int  k,
int *  indices,
int  indices_length,
int *  centers,
int &  centers_length 
) [pure virtual]

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

Implemented in rtflann::GroupWiseCenterChooser< Distance >, rtflann::KMeansppCenterChooser< Distance >, rtflann::GonzalesCenterChooser< Distance >, and rtflann::RandomCenterChooser< Distance >.

template<typename Distance >
void rtflann::CenterChooser< Distance >::setDataSize ( size_t  cols) [inline]

Definition at line 84 of file center_chooser.h.


Member Data Documentation

template<typename Distance >
size_t rtflann::CenterChooser< Distance >::cols_ [protected]

Definition at line 100 of file center_chooser.h.

template<typename Distance >
const Distance rtflann::CenterChooser< Distance >::distance_ [protected]

Definition at line 98 of file center_chooser.h.

template<typename Distance >
const std::vector<ElementType*>& rtflann::CenterChooser< Distance >::points_ [protected]

Definition at line 99 of file center_chooser.h.


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


rtabmap
Author(s): Mathieu Labbe
autogenerated on Sat Jul 23 2016 11:44:32