mlpack
master
|
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... | |
Private Attributes | |
arma::uvec | blacklist |
The cluster blacklist for the node. More... | |
arma::vec | centroid |
The centroid of the node, cached for use during prunes. More... | |
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.
|
inline |
Initialize the statistic without a node (this does nothing).
Definition at line 28 of file pelleg_moore_kmeans_statistic.hpp.
|
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.
References centroid.
|
inline |
Get the cluster blacklist.
Definition at line 57 of file pelleg_moore_kmeans_statistic.hpp.
References blacklist.
|
inline |
Modify the cluster blacklist.
Definition at line 59 of file pelleg_moore_kmeans_statistic.hpp.
References blacklist.
|
inline |
Get the node's centroid.
Definition at line 62 of file pelleg_moore_kmeans_statistic.hpp.
References centroid.
|
inline |
Modify the node's centroid (be careful!).
Definition at line 64 of file pelleg_moore_kmeans_statistic.hpp.
References centroid.
|
private |
The cluster blacklist for the node.
Definition at line 68 of file pelleg_moore_kmeans_statistic.hpp.
Referenced by Blacklist().
|
private |
The centroid of the node, cached for use during prunes.
Definition at line 70 of file pelleg_moore_kmeans_statistic.hpp.
Referenced by Centroid(), and PellegMooreKMeansStatistic().