mlpack
Public Member Functions | List of all members
mlpack::kmeans::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...

#include <pelleg_moore_kmeans_statistic.hpp>

Public Member Functions

 PellegMooreKMeansStatistic ()
 Initialize the statistic without a node (this does nothing).
 
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.
 
arma::uvec & Blacklist ()
 Modify the cluster blacklist.
 
const arma::vec & Centroid () const
 Get the node's centroid.
 
arma::vec & Centroid ()
 Modify the node's centroid (be careful!).
 

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).

Constructor & Destructor Documentation

◆ PellegMooreKMeansStatistic()

template<typename TreeType >
mlpack::kmeans::PellegMooreKMeansStatistic::PellegMooreKMeansStatistic ( TreeType &  node)
inline

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


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