\section{Hamerly\+K\+Means$<$ Metric\+Type, Mat\+Type $>$ Class Template Reference}
\label{classmlpack_1_1kmeans_1_1HamerlyKMeans}\index{Hamerly\+K\+Means$<$ Metric\+Type, Mat\+Type $>$@{Hamerly\+K\+Means$<$ Metric\+Type, Mat\+Type $>$}}
\subsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
\textbf{ Hamerly\+K\+Means} (const Mat\+Type \&dataset, Metric\+Type \&metric)
\begin{DoxyCompactList}\small\item\em Construct the \doxyref{Hamerly\+K\+Means}{p.}{classmlpack_1_1kmeans_1_1HamerlyKMeans} object, which must store several sets of bounds. \end{DoxyCompactList}\item 
size\+\_\+t \textbf{ Distance\+Calculations} () const
\item 
double \textbf{ Iterate} (const arma\+::mat \&centroids, arma\+::mat \&new\+Centroids, arma\+::\+Col$<$ size\+\_\+t $>$ \&counts)
\begin{DoxyCompactList}\small\item\em Run a single iteration of Hamerly\textquotesingle{}s algorithm, updating the given centroids into the new\+Centroids matrix. \end{DoxyCompactList}\end{DoxyCompactItemize}


\subsection{Detailed Description}
\subsubsection*{template$<$typename Metric\+Type, typename Mat\+Type$>$\newline
class mlpack\+::kmeans\+::\+Hamerly\+K\+Means$<$ Metric\+Type, Mat\+Type $>$}



Definition at line 19 of file hamerly\+\_\+kmeans.\+hpp.



\subsection{Constructor \& Destructor Documentation}
\mbox{\label{classmlpack_1_1kmeans_1_1HamerlyKMeans_af6285b130f44ae1c7a34330f5dcfb9cf}} 
\index{mlpack\+::kmeans\+::\+Hamerly\+K\+Means@{mlpack\+::kmeans\+::\+Hamerly\+K\+Means}!Hamerly\+K\+Means@{Hamerly\+K\+Means}}
\index{Hamerly\+K\+Means@{Hamerly\+K\+Means}!mlpack\+::kmeans\+::\+Hamerly\+K\+Means@{mlpack\+::kmeans\+::\+Hamerly\+K\+Means}}
\subsubsection{Hamerly\+K\+Means()}
{\footnotesize\ttfamily \textbf{ Hamerly\+K\+Means} (\begin{DoxyParamCaption}\item[{const Mat\+Type \&}]{dataset,  }\item[{Metric\+Type \&}]{metric }\end{DoxyParamCaption})}



Construct the \doxyref{Hamerly\+K\+Means}{p.}{classmlpack_1_1kmeans_1_1HamerlyKMeans} object, which must store several sets of bounds. 



\subsection{Member Function Documentation}
\mbox{\label{classmlpack_1_1kmeans_1_1HamerlyKMeans_a6ab05a40f496b49e405530a1d39120ef}} 
\index{mlpack\+::kmeans\+::\+Hamerly\+K\+Means@{mlpack\+::kmeans\+::\+Hamerly\+K\+Means}!Distance\+Calculations@{Distance\+Calculations}}
\index{Distance\+Calculations@{Distance\+Calculations}!mlpack\+::kmeans\+::\+Hamerly\+K\+Means@{mlpack\+::kmeans\+::\+Hamerly\+K\+Means}}
\subsubsection{Distance\+Calculations()}
{\footnotesize\ttfamily size\+\_\+t Distance\+Calculations (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption}) const\hspace{0.3cm}{\ttfamily [inline]}}



Definition at line 40 of file hamerly\+\_\+kmeans.\+hpp.

\mbox{\label{classmlpack_1_1kmeans_1_1HamerlyKMeans_a1618db5fb0d2893a50f0c8614d970453}} 
\index{mlpack\+::kmeans\+::\+Hamerly\+K\+Means@{mlpack\+::kmeans\+::\+Hamerly\+K\+Means}!Iterate@{Iterate}}
\index{Iterate@{Iterate}!mlpack\+::kmeans\+::\+Hamerly\+K\+Means@{mlpack\+::kmeans\+::\+Hamerly\+K\+Means}}
\subsubsection{Iterate()}
{\footnotesize\ttfamily double Iterate (\begin{DoxyParamCaption}\item[{const arma\+::mat \&}]{centroids,  }\item[{arma\+::mat \&}]{new\+Centroids,  }\item[{arma\+::\+Col$<$ size\+\_\+t $>$ \&}]{counts }\end{DoxyParamCaption})}



Run a single iteration of Hamerly\textquotesingle{}s algorithm, updating the given centroids into the new\+Centroids matrix. 


\begin{DoxyParams}{Parameters}
{\em centroids} & Current cluster centroids. \\
\hline
{\em new\+Centroids} & New cluster centroids. \\
\hline
{\em counts} & Current counts, to be overwritten with new counts. \\
\hline
\end{DoxyParams}


The documentation for this class was generated from the following file\+:\begin{DoxyCompactItemize}
\item 
/var/www/mlpack.\+ratml.\+org/mlpack.\+org/\+\_\+src/mlpack-\/3.\+3.\+0/src/mlpack/methods/kmeans/\textbf{ hamerly\+\_\+kmeans.\+hpp}\end{DoxyCompactItemize}
