\section{R\+A\+Query\+Stat$<$ Sort\+Policy $>$ Class Template Reference}
\label{classmlpack_1_1neighbor_1_1RAQueryStat}\index{R\+A\+Query\+Stat$<$ Sort\+Policy $>$@{R\+A\+Query\+Stat$<$ Sort\+Policy $>$}}


Extra data for each node in the tree.  


\subsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
\textbf{ R\+A\+Query\+Stat} ()
\begin{DoxyCompactList}\small\item\em Initialize the statistic with the worst possible distance according to our sorting policy. \end{DoxyCompactList}\item 
{\footnotesize template$<$typename Tree\+Type $>$ }\\\textbf{ R\+A\+Query\+Stat} (const Tree\+Type \&)
\begin{DoxyCompactList}\small\item\em Initialization for a node. \end{DoxyCompactList}\item 
double \textbf{ Bound} () const
\begin{DoxyCompactList}\small\item\em Get the bound. \end{DoxyCompactList}\item 
double \& \textbf{ Bound} ()
\begin{DoxyCompactList}\small\item\em Modify the bound. \end{DoxyCompactList}\item 
size\+\_\+t \textbf{ Num\+Samples\+Made} () const
\begin{DoxyCompactList}\small\item\em Get the number of samples made. \end{DoxyCompactList}\item 
size\+\_\+t \& \textbf{ Num\+Samples\+Made} ()
\begin{DoxyCompactList}\small\item\em Modify the number of samples made. \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}
\subsubsection*{template$<$typename Sort\+Policy$>$\newline
class mlpack\+::neighbor\+::\+R\+A\+Query\+Stat$<$ Sort\+Policy $>$}

Extra data for each node in the tree. 

For neighbor searches, each node only needs to store a bound on neighbor distances.

Every query is required to make a minimum number of samples to guarantee the desired approximation error. The \textquotesingle{}num\+Samples\+Made\textquotesingle{} keeps track of the minimum number of samples made by all queries in the node in question. 

Definition at line 35 of file ra\+\_\+query\+\_\+stat.\+hpp.



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



Initialize the statistic with the worst possible distance according to our sorting policy. 



Definition at line 42 of file ra\+\_\+query\+\_\+stat.\+hpp.

\mbox{\label{classmlpack_1_1neighbor_1_1RAQueryStat_a8c97f34a41094a4e0ce70487fa0f161b}} 
\index{mlpack\+::neighbor\+::\+R\+A\+Query\+Stat@{mlpack\+::neighbor\+::\+R\+A\+Query\+Stat}!R\+A\+Query\+Stat@{R\+A\+Query\+Stat}}
\index{R\+A\+Query\+Stat@{R\+A\+Query\+Stat}!mlpack\+::neighbor\+::\+R\+A\+Query\+Stat@{mlpack\+::neighbor\+::\+R\+A\+Query\+Stat}}
\subsubsection{R\+A\+Query\+Stat()\hspace{0.1cm}{\footnotesize\ttfamily [2/2]}}
{\footnotesize\ttfamily \textbf{ R\+A\+Query\+Stat} (\begin{DoxyParamCaption}\item[{const Tree\+Type \&}]{ }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [inline]}}



Initialization for a node. 



Definition at line 48 of file ra\+\_\+query\+\_\+stat.\+hpp.



\subsection{Member Function Documentation}
\mbox{\label{classmlpack_1_1neighbor_1_1RAQueryStat_abe1eb75f967ca19571a77a1e90faa0ad}} 
\index{mlpack\+::neighbor\+::\+R\+A\+Query\+Stat@{mlpack\+::neighbor\+::\+R\+A\+Query\+Stat}!Bound@{Bound}}
\index{Bound@{Bound}!mlpack\+::neighbor\+::\+R\+A\+Query\+Stat@{mlpack\+::neighbor\+::\+R\+A\+Query\+Stat}}
\subsubsection{Bound()\hspace{0.1cm}{\footnotesize\ttfamily [1/2]}}
{\footnotesize\ttfamily double Bound (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption}) const\hspace{0.3cm}{\ttfamily [inline]}}



Get the bound. 



Definition at line 54 of file ra\+\_\+query\+\_\+stat.\+hpp.

\mbox{\label{classmlpack_1_1neighbor_1_1RAQueryStat_a421b6e4a396e0c1057e297e39a7d1b8b}} 
\index{mlpack\+::neighbor\+::\+R\+A\+Query\+Stat@{mlpack\+::neighbor\+::\+R\+A\+Query\+Stat}!Bound@{Bound}}
\index{Bound@{Bound}!mlpack\+::neighbor\+::\+R\+A\+Query\+Stat@{mlpack\+::neighbor\+::\+R\+A\+Query\+Stat}}
\subsubsection{Bound()\hspace{0.1cm}{\footnotesize\ttfamily [2/2]}}
{\footnotesize\ttfamily double\& Bound (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [inline]}}



Modify the bound. 



Definition at line 56 of file ra\+\_\+query\+\_\+stat.\+hpp.

\mbox{\label{classmlpack_1_1neighbor_1_1RAQueryStat_abe4f5b99141d0e66fb2ca61674267659}} 
\index{mlpack\+::neighbor\+::\+R\+A\+Query\+Stat@{mlpack\+::neighbor\+::\+R\+A\+Query\+Stat}!Num\+Samples\+Made@{Num\+Samples\+Made}}
\index{Num\+Samples\+Made@{Num\+Samples\+Made}!mlpack\+::neighbor\+::\+R\+A\+Query\+Stat@{mlpack\+::neighbor\+::\+R\+A\+Query\+Stat}}
\subsubsection{Num\+Samples\+Made()\hspace{0.1cm}{\footnotesize\ttfamily [1/2]}}
{\footnotesize\ttfamily size\+\_\+t Num\+Samples\+Made (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption}) const\hspace{0.3cm}{\ttfamily [inline]}}



Get the number of samples made. 



Definition at line 59 of file ra\+\_\+query\+\_\+stat.\+hpp.

\mbox{\label{classmlpack_1_1neighbor_1_1RAQueryStat_a022010830d2949e594c3de35b0f6e203}} 
\index{mlpack\+::neighbor\+::\+R\+A\+Query\+Stat@{mlpack\+::neighbor\+::\+R\+A\+Query\+Stat}!Num\+Samples\+Made@{Num\+Samples\+Made}}
\index{Num\+Samples\+Made@{Num\+Samples\+Made}!mlpack\+::neighbor\+::\+R\+A\+Query\+Stat@{mlpack\+::neighbor\+::\+R\+A\+Query\+Stat}}
\subsubsection{Num\+Samples\+Made()\hspace{0.1cm}{\footnotesize\ttfamily [2/2]}}
{\footnotesize\ttfamily size\+\_\+t\& Num\+Samples\+Made (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [inline]}}



Modify the number of samples made. 



Definition at line 61 of file ra\+\_\+query\+\_\+stat.\+hpp.

\mbox{\label{classmlpack_1_1neighbor_1_1RAQueryStat_af0dd9205158ccf7bcfcd8ff81f79c927}} 
\index{mlpack\+::neighbor\+::\+R\+A\+Query\+Stat@{mlpack\+::neighbor\+::\+R\+A\+Query\+Stat}!serialize@{serialize}}
\index{serialize@{serialize}!mlpack\+::neighbor\+::\+R\+A\+Query\+Stat@{mlpack\+::neighbor\+::\+R\+A\+Query\+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 65 of file ra\+\_\+query\+\_\+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.\+0/src/mlpack/methods/rann/\textbf{ ra\+\_\+query\+\_\+stat.\+hpp}\end{DoxyCompactItemize}
