\section{Space\+Split$<$ Metric\+Type, Mat\+Type $>$ Class Template Reference}
\label{classmlpack_1_1tree_1_1SpaceSplit}\index{Space\+Split$<$ Metric\+Type, Mat\+Type $>$@{Space\+Split$<$ Metric\+Type, Mat\+Type $>$}}
\subsection*{Static Public Member Functions}
\begin{DoxyCompactItemize}
\item 
static bool \textbf{ Get\+Proj\+Vector} (const \textbf{ bound\+::\+H\+Rect\+Bound}$<$ Metric\+Type $>$ \&bound, const Mat\+Type \&data, const arma\+::\+Col$<$ size\+\_\+t $>$ \&points, \textbf{ Axis\+Parallel\+Proj\+Vector} \&proj\+Vector, double \&mid\+Value)
\begin{DoxyCompactList}\small\item\em Create a projection vector based on the given set of point. \end{DoxyCompactList}\item 
{\footnotesize template$<$typename Bound\+Type $>$ }\\static bool \textbf{ Get\+Proj\+Vector} (const Bound\+Type \&bound, const Mat\+Type \&data, const arma\+::\+Col$<$ size\+\_\+t $>$ \&points, \textbf{ Proj\+Vector} \&proj\+Vector, double \&mid\+Value)
\begin{DoxyCompactList}\small\item\em Create a projection vector based on the given set of point. \end{DoxyCompactList}\end{DoxyCompactItemize}


\subsection{Detailed Description}
\subsubsection*{template$<$typename Metric\+Type, typename Mat\+Type$>$\newline
class mlpack\+::tree\+::\+Space\+Split$<$ Metric\+Type, Mat\+Type $>$}



Definition at line 23 of file space\+\_\+split.\+hpp.



\subsection{Member Function Documentation}
\mbox{\label{classmlpack_1_1tree_1_1SpaceSplit_a3462d5a58324fb057198cd8b93a2b7b9}} 
\index{mlpack\+::tree\+::\+Space\+Split@{mlpack\+::tree\+::\+Space\+Split}!Get\+Proj\+Vector@{Get\+Proj\+Vector}}
\index{Get\+Proj\+Vector@{Get\+Proj\+Vector}!mlpack\+::tree\+::\+Space\+Split@{mlpack\+::tree\+::\+Space\+Split}}
\subsubsection{Get\+Proj\+Vector()\hspace{0.1cm}{\footnotesize\ttfamily [1/2]}}
{\footnotesize\ttfamily static bool Get\+Proj\+Vector (\begin{DoxyParamCaption}\item[{const \textbf{ bound\+::\+H\+Rect\+Bound}$<$ Metric\+Type $>$ \&}]{bound,  }\item[{const Mat\+Type \&}]{data,  }\item[{const arma\+::\+Col$<$ size\+\_\+t $>$ \&}]{points,  }\item[{\textbf{ Axis\+Parallel\+Proj\+Vector} \&}]{proj\+Vector,  }\item[{double \&}]{mid\+Value }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [static]}}



Create a projection vector based on the given set of point. 

This special case will create an axis-\/parallel projection vector in the dimension that has the maximum width.


\begin{DoxyParams}{Parameters}
{\em bound} & The bound used for this node. \\
\hline
{\em data} & The dataset used by the tree. \\
\hline
{\em points} & Vector of indexes of points to be considered. \\
\hline
{\em proj\+Vector} & Resulting axis-\/parallel projection vector. \\
\hline
{\em mid\+Value} & Mid value in the chosen projection. \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
Flag to determine if it is possible. 
\end{DoxyReturn}
\mbox{\label{classmlpack_1_1tree_1_1SpaceSplit_abb01f03cb17f2b7358402ca7186e75e6}} 
\index{mlpack\+::tree\+::\+Space\+Split@{mlpack\+::tree\+::\+Space\+Split}!Get\+Proj\+Vector@{Get\+Proj\+Vector}}
\index{Get\+Proj\+Vector@{Get\+Proj\+Vector}!mlpack\+::tree\+::\+Space\+Split@{mlpack\+::tree\+::\+Space\+Split}}
\subsubsection{Get\+Proj\+Vector()\hspace{0.1cm}{\footnotesize\ttfamily [2/2]}}
{\footnotesize\ttfamily static bool Get\+Proj\+Vector (\begin{DoxyParamCaption}\item[{const Bound\+Type \&}]{bound,  }\item[{const Mat\+Type \&}]{data,  }\item[{const arma\+::\+Col$<$ size\+\_\+t $>$ \&}]{points,  }\item[{\textbf{ Proj\+Vector} \&}]{proj\+Vector,  }\item[{double \&}]{mid\+Value }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [static]}}



Create a projection vector based on the given set of point. 

We efficiently estimate the farthest pair of points in the given set\+: p and q, and then consider the projection vector (q -\/ p).


\begin{DoxyParams}{Parameters}
{\em bound} & The bound used for this node. \\
\hline
{\em data} & The dataset used by the tree. \\
\hline
{\em points} & Vector of indexes of points to be considered. \\
\hline
{\em proj\+Vector} & Resulting projection vector. \\
\hline
{\em mid\+Value} & Mid value in the chosen projection. \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
Flag to determine if it is possible. 
\end{DoxyReturn}


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/core/tree/space\+\_\+split/\textbf{ space\+\_\+split.\+hpp}\end{DoxyCompactItemize}
