PellegMooreKMeansStatistic Class Reference

A statistic for trees which holds the blacklist for Pelleg-Moore k-means clustering (which represents the clusters that cannot possibly own any points in a node). More...

Public Member Functions

 PellegMooreKMeansStatistic ()
 Initialize the statistic without a node (this does nothing). More...

 
template
<
typename
TreeType
>
 PellegMooreKMeansStatistic (TreeType &node)
 Initialize the statistic for a node; this calculates the centroid and caches it. More...

 
const arma::uvec & Blacklist () const
 Get the cluster blacklist. More...

 
arma::uvec & Blacklist ()
 Modify the cluster blacklist. More...

 
const arma::vec & Centroid () const
 Get the node's centroid. More...

 
arma::vec & Centroid ()
 Modify the node's centroid (be careful!). More...

 

Detailed Description

A statistic for trees which holds the blacklist for Pelleg-Moore k-means clustering (which represents the clusters that cannot possibly own any points in a node).

Definition at line 24 of file pelleg_moore_kmeans_statistic.hpp.

Constructor & Destructor Documentation

◆ PellegMooreKMeansStatistic() [1/2]

Initialize the statistic without a node (this does nothing).

Definition at line 28 of file pelleg_moore_kmeans_statistic.hpp.

◆ PellegMooreKMeansStatistic() [2/2]

PellegMooreKMeansStatistic ( TreeType &  node)
inline

Initialize the statistic for a node; this calculates the centroid and caches it.

Definition at line 33 of file pelleg_moore_kmeans_statistic.hpp.

Member Function Documentation

◆ Blacklist() [1/2]

const arma::uvec& Blacklist ( ) const
inline

Get the cluster blacklist.

Definition at line 57 of file pelleg_moore_kmeans_statistic.hpp.

◆ Blacklist() [2/2]

arma::uvec& Blacklist ( )
inline

Modify the cluster blacklist.

Definition at line 59 of file pelleg_moore_kmeans_statistic.hpp.

◆ Centroid() [1/2]

const arma::vec& Centroid ( ) const
inline

Get the node's centroid.

Definition at line 62 of file pelleg_moore_kmeans_statistic.hpp.

◆ Centroid() [2/2]

arma::vec& Centroid ( )
inline

Modify the node's centroid (be careful!).

Definition at line 64 of file pelleg_moore_kmeans_statistic.hpp.


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