\section{Range\+Search\+Stat Class Reference}
\label{classmlpack_1_1range_1_1RangeSearchStat}\index{Range\+Search\+Stat@{Range\+Search\+Stat}}


Statistic class for \doxyref{Range\+Search}{p.}{classmlpack_1_1range_1_1RangeSearch}, to be set to the Statistic\+Type of the tree type that range search is being performed with.  


\subsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
\textbf{ Range\+Search\+Stat} ()
\begin{DoxyCompactList}\small\item\em Initialize the statistic. \end{DoxyCompactList}\item 
{\footnotesize template$<$typename Tree\+Type $>$ }\\\textbf{ Range\+Search\+Stat} (Tree\+Type \&)
\begin{DoxyCompactList}\small\item\em Initialize the statistic given a tree node that this statistic belongs to. \end{DoxyCompactList}\item 
double \textbf{ Last\+Distance} () const
\begin{DoxyCompactList}\small\item\em Get the last distance evaluation. \end{DoxyCompactList}\item 
double \& \textbf{ Last\+Distance} ()
\begin{DoxyCompactList}\small\item\em Modify the last distance evaluation. \end{DoxyCompactList}\item 
{\footnotesize template$<$typename Archive $>$ }\\void \textbf{ serialize} (Archive \&ar, const unsigned int)
\begin{DoxyCompactList}\small\item\em Serialize the statistic. \end{DoxyCompactList}\end{DoxyCompactItemize}


\subsection{Detailed Description}
Statistic class for \doxyref{Range\+Search}{p.}{classmlpack_1_1range_1_1RangeSearch}, to be set to the Statistic\+Type of the tree type that range search is being performed with. 

This class just holds the last visited node and the corresponding base case result. 

Definition at line 26 of file range\+\_\+search\+\_\+stat.\+hpp.



\subsection{Constructor \& Destructor Documentation}
\mbox{\label{classmlpack_1_1range_1_1RangeSearchStat_a5fd77cfc394fcde96cd27a0f573f99d0}} 
\index{mlpack\+::range\+::\+Range\+Search\+Stat@{mlpack\+::range\+::\+Range\+Search\+Stat}!Range\+Search\+Stat@{Range\+Search\+Stat}}
\index{Range\+Search\+Stat@{Range\+Search\+Stat}!mlpack\+::range\+::\+Range\+Search\+Stat@{mlpack\+::range\+::\+Range\+Search\+Stat}}
\subsubsection{Range\+Search\+Stat()\hspace{0.1cm}{\footnotesize\ttfamily [1/2]}}
{\footnotesize\ttfamily \textbf{ Range\+Search\+Stat} (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [inline]}}



Initialize the statistic. 



Definition at line 32 of file range\+\_\+search\+\_\+stat.\+hpp.

\mbox{\label{classmlpack_1_1range_1_1RangeSearchStat_a151dbebd1ff29fd2ef100e7507c13630}} 
\index{mlpack\+::range\+::\+Range\+Search\+Stat@{mlpack\+::range\+::\+Range\+Search\+Stat}!Range\+Search\+Stat@{Range\+Search\+Stat}}
\index{Range\+Search\+Stat@{Range\+Search\+Stat}!mlpack\+::range\+::\+Range\+Search\+Stat@{mlpack\+::range\+::\+Range\+Search\+Stat}}
\subsubsection{Range\+Search\+Stat()\hspace{0.1cm}{\footnotesize\ttfamily [2/2]}}
{\footnotesize\ttfamily \textbf{ Range\+Search\+Stat} (\begin{DoxyParamCaption}\item[{Tree\+Type \&}]{ }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [inline]}}



Initialize the statistic given a tree node that this statistic belongs to. 

In this case, we ignore the node. 

Definition at line 39 of file range\+\_\+search\+\_\+stat.\+hpp.



\subsection{Member Function Documentation}
\mbox{\label{classmlpack_1_1range_1_1RangeSearchStat_acf3025848cf3628a9213763886101369}} 
\index{mlpack\+::range\+::\+Range\+Search\+Stat@{mlpack\+::range\+::\+Range\+Search\+Stat}!Last\+Distance@{Last\+Distance}}
\index{Last\+Distance@{Last\+Distance}!mlpack\+::range\+::\+Range\+Search\+Stat@{mlpack\+::range\+::\+Range\+Search\+Stat}}
\subsubsection{Last\+Distance()\hspace{0.1cm}{\footnotesize\ttfamily [1/2]}}
{\footnotesize\ttfamily double Last\+Distance (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption}) const\hspace{0.3cm}{\ttfamily [inline]}}



Get the last distance evaluation. 



Definition at line 43 of file range\+\_\+search\+\_\+stat.\+hpp.

\mbox{\label{classmlpack_1_1range_1_1RangeSearchStat_a73c8a7f485e9b81d86b7b7b1b75a97af}} 
\index{mlpack\+::range\+::\+Range\+Search\+Stat@{mlpack\+::range\+::\+Range\+Search\+Stat}!Last\+Distance@{Last\+Distance}}
\index{Last\+Distance@{Last\+Distance}!mlpack\+::range\+::\+Range\+Search\+Stat@{mlpack\+::range\+::\+Range\+Search\+Stat}}
\subsubsection{Last\+Distance()\hspace{0.1cm}{\footnotesize\ttfamily [2/2]}}
{\footnotesize\ttfamily double\& Last\+Distance (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [inline]}}



Modify the last distance evaluation. 



Definition at line 45 of file range\+\_\+search\+\_\+stat.\+hpp.

\mbox{\label{classmlpack_1_1range_1_1RangeSearchStat_af0dd9205158ccf7bcfcd8ff81f79c927}} 
\index{mlpack\+::range\+::\+Range\+Search\+Stat@{mlpack\+::range\+::\+Range\+Search\+Stat}!serialize@{serialize}}
\index{serialize@{serialize}!mlpack\+::range\+::\+Range\+Search\+Stat@{mlpack\+::range\+::\+Range\+Search\+Stat}}
\subsubsection{serialize()}
{\footnotesize\ttfamily void serialize (\begin{DoxyParamCaption}\item[{Archive \&}]{ar,  }\item[{const unsigned}]{int }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [inline]}}



Serialize the statistic. 



Definition at line 49 of file range\+\_\+search\+\_\+stat.\+hpp.



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.\+2/src/mlpack/methods/range\+\_\+search/\textbf{ range\+\_\+search\+\_\+stat.\+hpp}\end{DoxyCompactItemize}
