\section{Train\+Visitor Class Reference}
\label{classmlpack_1_1range_1_1TrainVisitor}\index{Train\+Visitor@{Train\+Visitor}}


\doxyref{Train\+Visitor}{p.}{classmlpack_1_1range_1_1TrainVisitor} sets the reference set to a new reference set on the given R\+S\+Type.  




Inheritance diagram for Train\+Visitor\+:
\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=152pt]{classmlpack_1_1range_1_1TrainVisitor__inherit__graph}
\end{center}
\end{figure}
\subsection*{Public Types}
\begin{DoxyCompactItemize}
\item 
{\footnotesize template$<$template$<$ typename Tree\+Metric\+Type, typename Tree\+Stat\+Type, typename Tree\+Mat\+Type $>$ class Tree\+Type$>$ }\\using \textbf{ R\+S\+TypeT} = \textbf{ R\+S\+Type}$<$ Tree\+Type $>$
\begin{DoxyCompactList}\small\item\em Alias template necessary for visual c++ compiler. \end{DoxyCompactList}\end{DoxyCompactItemize}
\subsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
\textbf{ Train\+Visitor} (arma\+::mat \&\&reference\+Set, const size\+\_\+t leaf\+Size)
\begin{DoxyCompactList}\small\item\em Construct the \doxyref{Train\+Visitor}{p.}{classmlpack_1_1range_1_1TrainVisitor} object with the given reference set, leaf\+Size. \end{DoxyCompactList}\item 
{\footnotesize template$<$template$<$ typename Tree\+Metric\+Type, typename Tree\+Stat\+Type, typename Tree\+Mat\+Type $>$ class Tree\+Type$>$ }\\void \textbf{ operator()} (\textbf{ R\+S\+TypeT}$<$ Tree\+Type $>$ $\ast$rs) const
\begin{DoxyCompactList}\small\item\em Default Train on the given R\+S\+Type instance. \end{DoxyCompactList}\item 
void \textbf{ operator()} (\textbf{ R\+S\+TypeT}$<$ \textbf{ tree\+::\+K\+D\+Tree} $>$ $\ast$rs) const
\begin{DoxyCompactList}\small\item\em Train on the given R\+S\+Type specialized for K\+D\+Trees. \end{DoxyCompactList}\item 
void \textbf{ operator()} (\textbf{ R\+S\+TypeT}$<$ \textbf{ tree\+::\+Ball\+Tree} $>$ $\ast$rs) const
\begin{DoxyCompactList}\small\item\em Train on the given R\+S\+Type specialized for Ball\+Trees. \end{DoxyCompactList}\item 
void \textbf{ operator()} (\textbf{ R\+S\+TypeT}$<$ \textbf{ tree\+::\+Octree} $>$ $\ast$rs) const
\begin{DoxyCompactList}\small\item\em Train specialized for octrees. \end{DoxyCompactList}\end{DoxyCompactItemize}


\subsection{Detailed Description}
\doxyref{Train\+Visitor}{p.}{classmlpack_1_1range_1_1TrainVisitor} sets the reference set to a new reference set on the given R\+S\+Type. 

We use template specialization to differentiate those tree types that accept leaf\+Size as a parameter. In these cases, a reference tree with proper leaf\+Size is built from the reference\+Set. 

Definition at line 125 of file rs\+\_\+model.\+hpp.



\subsection{Member Typedef Documentation}
\mbox{\label{classmlpack_1_1range_1_1TrainVisitor_a9af43ea057895b221838e70fc62d3762}} 
\index{mlpack\+::range\+::\+Train\+Visitor@{mlpack\+::range\+::\+Train\+Visitor}!R\+S\+TypeT@{R\+S\+TypeT}}
\index{R\+S\+TypeT@{R\+S\+TypeT}!mlpack\+::range\+::\+Train\+Visitor@{mlpack\+::range\+::\+Train\+Visitor}}
\subsubsection{R\+S\+TypeT}
{\footnotesize\ttfamily using \textbf{ R\+S\+TypeT} =  \textbf{ R\+S\+Type}$<$Tree\+Type$>$}



Alias template necessary for visual c++ compiler. 



Definition at line 141 of file rs\+\_\+model.\+hpp.



\subsection{Constructor \& Destructor Documentation}
\mbox{\label{classmlpack_1_1range_1_1TrainVisitor_a1d5723b93059db45833ff96cb60aab00}} 
\index{mlpack\+::range\+::\+Train\+Visitor@{mlpack\+::range\+::\+Train\+Visitor}!Train\+Visitor@{Train\+Visitor}}
\index{Train\+Visitor@{Train\+Visitor}!mlpack\+::range\+::\+Train\+Visitor@{mlpack\+::range\+::\+Train\+Visitor}}
\subsubsection{Train\+Visitor()}
{\footnotesize\ttfamily \textbf{ Train\+Visitor} (\begin{DoxyParamCaption}\item[{arma\+::mat \&\&}]{reference\+Set,  }\item[{const size\+\_\+t}]{leaf\+Size }\end{DoxyParamCaption})}



Construct the \doxyref{Train\+Visitor}{p.}{classmlpack_1_1range_1_1TrainVisitor} object with the given reference set, leaf\+Size. 



\subsection{Member Function Documentation}
\mbox{\label{classmlpack_1_1range_1_1TrainVisitor_a0924fae2a95b067f165794abc92061d4}} 
\index{mlpack\+::range\+::\+Train\+Visitor@{mlpack\+::range\+::\+Train\+Visitor}!operator()@{operator()}}
\index{operator()@{operator()}!mlpack\+::range\+::\+Train\+Visitor@{mlpack\+::range\+::\+Train\+Visitor}}
\subsubsection{operator()()\hspace{0.1cm}{\footnotesize\ttfamily [1/4]}}
{\footnotesize\ttfamily void operator() (\begin{DoxyParamCaption}\item[{\textbf{ R\+S\+TypeT}$<$ Tree\+Type $>$ $\ast$}]{rs }\end{DoxyParamCaption}) const}



Default Train on the given R\+S\+Type instance. 

\mbox{\label{classmlpack_1_1range_1_1TrainVisitor_ac04a6da04157f62dcee8c0b6f774ea11}} 
\index{mlpack\+::range\+::\+Train\+Visitor@{mlpack\+::range\+::\+Train\+Visitor}!operator()@{operator()}}
\index{operator()@{operator()}!mlpack\+::range\+::\+Train\+Visitor@{mlpack\+::range\+::\+Train\+Visitor}}
\subsubsection{operator()()\hspace{0.1cm}{\footnotesize\ttfamily [2/4]}}
{\footnotesize\ttfamily void operator() (\begin{DoxyParamCaption}\item[{\textbf{ R\+S\+TypeT}$<$ \textbf{ tree\+::\+K\+D\+Tree} $>$ $\ast$}]{rs }\end{DoxyParamCaption}) const}



Train on the given R\+S\+Type specialized for K\+D\+Trees. 

\mbox{\label{classmlpack_1_1range_1_1TrainVisitor_a0a2f9e768702b0bc2b0a0436e677682f}} 
\index{mlpack\+::range\+::\+Train\+Visitor@{mlpack\+::range\+::\+Train\+Visitor}!operator()@{operator()}}
\index{operator()@{operator()}!mlpack\+::range\+::\+Train\+Visitor@{mlpack\+::range\+::\+Train\+Visitor}}
\subsubsection{operator()()\hspace{0.1cm}{\footnotesize\ttfamily [3/4]}}
{\footnotesize\ttfamily void operator() (\begin{DoxyParamCaption}\item[{\textbf{ R\+S\+TypeT}$<$ \textbf{ tree\+::\+Ball\+Tree} $>$ $\ast$}]{rs }\end{DoxyParamCaption}) const}



Train on the given R\+S\+Type specialized for Ball\+Trees. 

\mbox{\label{classmlpack_1_1range_1_1TrainVisitor_ab703053394df0c87d36e96f5356e149f}} 
\index{mlpack\+::range\+::\+Train\+Visitor@{mlpack\+::range\+::\+Train\+Visitor}!operator()@{operator()}}
\index{operator()@{operator()}!mlpack\+::range\+::\+Train\+Visitor@{mlpack\+::range\+::\+Train\+Visitor}}
\subsubsection{operator()()\hspace{0.1cm}{\footnotesize\ttfamily [4/4]}}
{\footnotesize\ttfamily void operator() (\begin{DoxyParamCaption}\item[{\textbf{ R\+S\+TypeT}$<$ \textbf{ tree\+::\+Octree} $>$ $\ast$}]{rs }\end{DoxyParamCaption}) const}



Train specialized for octrees. 



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/range\+\_\+search/\textbf{ rs\+\_\+model.\+hpp}\end{DoxyCompactItemize}
