\section{Pelleg\+Moore\+K\+Means\+Statistic Class Reference}
\label{classmlpack_1_1kmeans_1_1PellegMooreKMeansStatistic}\index{Pelleg\+Moore\+K\+Means\+Statistic@{Pelleg\+Moore\+K\+Means\+Statistic}}


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


\subsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
\textbf{ Pelleg\+Moore\+K\+Means\+Statistic} ()
\begin{DoxyCompactList}\small\item\em Initialize the statistic without a node (this does nothing). \end{DoxyCompactList}\item 
{\footnotesize template$<$typename Tree\+Type $>$ }\\\textbf{ Pelleg\+Moore\+K\+Means\+Statistic} (Tree\+Type \&node)
\begin{DoxyCompactList}\small\item\em Initialize the statistic for a node; this calculates the centroid and caches it. \end{DoxyCompactList}\item 
const arma\+::uvec \& \textbf{ Blacklist} () const
\begin{DoxyCompactList}\small\item\em Get the cluster blacklist. \end{DoxyCompactList}\item 
arma\+::uvec \& \textbf{ Blacklist} ()
\begin{DoxyCompactList}\small\item\em Modify the cluster blacklist. \end{DoxyCompactList}\item 
const arma\+::vec \& \textbf{ Centroid} () const
\begin{DoxyCompactList}\small\item\em Get the node\textquotesingle{}s centroid. \end{DoxyCompactList}\item 
arma\+::vec \& \textbf{ Centroid} ()
\begin{DoxyCompactList}\small\item\em Modify the node\textquotesingle{}s centroid (be careful!). \end{DoxyCompactList}\end{DoxyCompactItemize}


\subsection{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.



\subsection{Constructor \& Destructor Documentation}
\mbox{\label{classmlpack_1_1kmeans_1_1PellegMooreKMeansStatistic_ab90ad4a48d4ee000bd4406ebb09ff3e8}} 
\index{mlpack\+::kmeans\+::\+Pelleg\+Moore\+K\+Means\+Statistic@{mlpack\+::kmeans\+::\+Pelleg\+Moore\+K\+Means\+Statistic}!Pelleg\+Moore\+K\+Means\+Statistic@{Pelleg\+Moore\+K\+Means\+Statistic}}
\index{Pelleg\+Moore\+K\+Means\+Statistic@{Pelleg\+Moore\+K\+Means\+Statistic}!mlpack\+::kmeans\+::\+Pelleg\+Moore\+K\+Means\+Statistic@{mlpack\+::kmeans\+::\+Pelleg\+Moore\+K\+Means\+Statistic}}
\subsubsection{Pelleg\+Moore\+K\+Means\+Statistic()\hspace{0.1cm}{\footnotesize\ttfamily [1/2]}}
{\footnotesize\ttfamily \textbf{ Pelleg\+Moore\+K\+Means\+Statistic} (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [inline]}}



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



Definition at line 28 of file pelleg\+\_\+moore\+\_\+kmeans\+\_\+statistic.\+hpp.

\mbox{\label{classmlpack_1_1kmeans_1_1PellegMooreKMeansStatistic_aba9397b219e4149d384a16923863566f}} 
\index{mlpack\+::kmeans\+::\+Pelleg\+Moore\+K\+Means\+Statistic@{mlpack\+::kmeans\+::\+Pelleg\+Moore\+K\+Means\+Statistic}!Pelleg\+Moore\+K\+Means\+Statistic@{Pelleg\+Moore\+K\+Means\+Statistic}}
\index{Pelleg\+Moore\+K\+Means\+Statistic@{Pelleg\+Moore\+K\+Means\+Statistic}!mlpack\+::kmeans\+::\+Pelleg\+Moore\+K\+Means\+Statistic@{mlpack\+::kmeans\+::\+Pelleg\+Moore\+K\+Means\+Statistic}}
\subsubsection{Pelleg\+Moore\+K\+Means\+Statistic()\hspace{0.1cm}{\footnotesize\ttfamily [2/2]}}
{\footnotesize\ttfamily \textbf{ Pelleg\+Moore\+K\+Means\+Statistic} (\begin{DoxyParamCaption}\item[{Tree\+Type \&}]{node }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [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.



\subsection{Member Function Documentation}
\mbox{\label{classmlpack_1_1kmeans_1_1PellegMooreKMeansStatistic_afb656efc6b69a7d77423276348a75c6e}} 
\index{mlpack\+::kmeans\+::\+Pelleg\+Moore\+K\+Means\+Statistic@{mlpack\+::kmeans\+::\+Pelleg\+Moore\+K\+Means\+Statistic}!Blacklist@{Blacklist}}
\index{Blacklist@{Blacklist}!mlpack\+::kmeans\+::\+Pelleg\+Moore\+K\+Means\+Statistic@{mlpack\+::kmeans\+::\+Pelleg\+Moore\+K\+Means\+Statistic}}
\subsubsection{Blacklist()\hspace{0.1cm}{\footnotesize\ttfamily [1/2]}}
{\footnotesize\ttfamily const arma\+::uvec\& Blacklist (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption}) const\hspace{0.3cm}{\ttfamily [inline]}}



Get the cluster blacklist. 



Definition at line 57 of file pelleg\+\_\+moore\+\_\+kmeans\+\_\+statistic.\+hpp.

\mbox{\label{classmlpack_1_1kmeans_1_1PellegMooreKMeansStatistic_a28e7826933df4b13a45abc649a34f44a}} 
\index{mlpack\+::kmeans\+::\+Pelleg\+Moore\+K\+Means\+Statistic@{mlpack\+::kmeans\+::\+Pelleg\+Moore\+K\+Means\+Statistic}!Blacklist@{Blacklist}}
\index{Blacklist@{Blacklist}!mlpack\+::kmeans\+::\+Pelleg\+Moore\+K\+Means\+Statistic@{mlpack\+::kmeans\+::\+Pelleg\+Moore\+K\+Means\+Statistic}}
\subsubsection{Blacklist()\hspace{0.1cm}{\footnotesize\ttfamily [2/2]}}
{\footnotesize\ttfamily arma\+::uvec\& Blacklist (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [inline]}}



Modify the cluster blacklist. 



Definition at line 59 of file pelleg\+\_\+moore\+\_\+kmeans\+\_\+statistic.\+hpp.

\mbox{\label{classmlpack_1_1kmeans_1_1PellegMooreKMeansStatistic_a8d1b09bb5ee8c048e57746774a6e502e}} 
\index{mlpack\+::kmeans\+::\+Pelleg\+Moore\+K\+Means\+Statistic@{mlpack\+::kmeans\+::\+Pelleg\+Moore\+K\+Means\+Statistic}!Centroid@{Centroid}}
\index{Centroid@{Centroid}!mlpack\+::kmeans\+::\+Pelleg\+Moore\+K\+Means\+Statistic@{mlpack\+::kmeans\+::\+Pelleg\+Moore\+K\+Means\+Statistic}}
\subsubsection{Centroid()\hspace{0.1cm}{\footnotesize\ttfamily [1/2]}}
{\footnotesize\ttfamily const arma\+::vec\& Centroid (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption}) const\hspace{0.3cm}{\ttfamily [inline]}}



Get the node\textquotesingle{}s centroid. 



Definition at line 62 of file pelleg\+\_\+moore\+\_\+kmeans\+\_\+statistic.\+hpp.

\mbox{\label{classmlpack_1_1kmeans_1_1PellegMooreKMeansStatistic_a656ee900ec6d5a1548d3023d7df8bb9a}} 
\index{mlpack\+::kmeans\+::\+Pelleg\+Moore\+K\+Means\+Statistic@{mlpack\+::kmeans\+::\+Pelleg\+Moore\+K\+Means\+Statistic}!Centroid@{Centroid}}
\index{Centroid@{Centroid}!mlpack\+::kmeans\+::\+Pelleg\+Moore\+K\+Means\+Statistic@{mlpack\+::kmeans\+::\+Pelleg\+Moore\+K\+Means\+Statistic}}
\subsubsection{Centroid()\hspace{0.1cm}{\footnotesize\ttfamily [2/2]}}
{\footnotesize\ttfamily arma\+::vec\& Centroid (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [inline]}}



Modify the node\textquotesingle{}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\+:\begin{DoxyCompactItemize}
\item 
/var/www/mlpack.\+ratml.\+org/mlpack.\+org/\+\_\+src/mlpack-\/git/src/mlpack/methods/kmeans/\textbf{ pelleg\+\_\+moore\+\_\+kmeans\+\_\+statistic.\+hpp}\end{DoxyCompactItemize}
