aimstil  5.0.5
til::GonzalezClustering< TData, TPrec, TDist > Class Template Reference

Gonzalez clustering. More...

#include <cathier/meshUtils.h>

Public Types

typedef TPrec prec_type
 
typedef TData::value_type value_type
 

Public Member Functions

 GonzalezClustering (const TData &data)
 
shared_ptr< std::vector< iterator > > quantization ()
 Returns data quantization, i.e. a subset of the original data of representative of its clusters. More...
 
shared_ptr< std::vector< std::size_t > > labels ()
 
void clusterize_maxDiam (prec_type maxDiam)
 Clustering, until max cluster diameter is less than a threshold. More...
 
void computeClusters ()
 update labels to reflect current clustering. More...
 
void moveClusterSeeds ()
 Move cluster quantized vector as close to cluster center as possible. More...
 
void addNewClusterSeed ()
 Add a new cluster to the list. More...
 

Detailed Description

template<typename TData, typename TPrec, typename TDist = SquaredEuclideanDist<TPrec>>
class til::GonzalezClustering< TData, TPrec, TDist >

Gonzalez clustering.

Definition at line 1357 of file meshUtils.h.

Member Typedef Documentation

◆ prec_type

template<typename TData, typename TPrec, typename TDist = SquaredEuclideanDist<TPrec>>
typedef TPrec til::GonzalezClustering< TData, TPrec, TDist >::prec_type

Definition at line 1363 of file meshUtils.h.

◆ value_type

template<typename TData, typename TPrec, typename TDist = SquaredEuclideanDist<TPrec>>
typedef TData::value_type til::GonzalezClustering< TData, TPrec, TDist >::value_type

Definition at line 1364 of file meshUtils.h.

Constructor & Destructor Documentation

◆ GonzalezClustering()

template<typename TData, typename TPrec, typename TDist = SquaredEuclideanDist<TPrec>>
til::GonzalezClustering< TData, TPrec, TDist >::GonzalezClustering ( const TData &  data)
inline

Definition at line 1368 of file meshUtils.h.

Member Function Documentation

◆ addNewClusterSeed()

template<typename TData, typename TPrec, typename TDist = SquaredEuclideanDist<TPrec>>
void til::GonzalezClustering< TData, TPrec, TDist >::addNewClusterSeed ( )
inline

Add a new cluster to the list.

Definition at line 1486 of file meshUtils.h.

◆ clusterize_maxDiam()

template<typename TData, typename TPrec, typename TDist = SquaredEuclideanDist<TPrec>>
void til::GonzalezClustering< TData, TPrec, TDist >::clusterize_maxDiam ( prec_type  maxDiam)
inline

Clustering, until max cluster diameter is less than a threshold.

Definition at line 1386 of file meshUtils.h.

Referenced by til::gonzalez_clustering().

◆ computeClusters()

template<typename TData, typename TPrec, typename TDist = SquaredEuclideanDist<TPrec>>
void til::GonzalezClustering< TData, TPrec, TDist >::computeClusters ( )
inline

update labels to reflect current clustering.

Definition at line 1426 of file meshUtils.h.

References til::max().

◆ labels()

template<typename TData, typename TPrec, typename TDist = SquaredEuclideanDist<TPrec>>
shared_ptr<std::vector<std::size_t> > til::GonzalezClustering< TData, TPrec, TDist >::labels ( )
inline

Definition at line 1381 of file meshUtils.h.

◆ moveClusterSeeds()

template<typename TData, typename TPrec, typename TDist = SquaredEuclideanDist<TPrec>>
void til::GonzalezClustering< TData, TPrec, TDist >::moveClusterSeeds ( )
inline

Move cluster quantized vector as close to cluster center as possible.

Definition at line 1447 of file meshUtils.h.

References til::max().

◆ quantization()

template<typename TData, typename TPrec, typename TDist = SquaredEuclideanDist<TPrec>>
shared_ptr<std::vector<iterator> > til::GonzalezClustering< TData, TPrec, TDist >::quantization ( )
inline

Returns data quantization, i.e. a subset of the original data of representative of its clusters.

Definition at line 1379 of file meshUtils.h.

Referenced by til::gonzalez_clustering().


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