\section{Random\+Selection Class Reference}
\label{classmlpack_1_1kernel_1_1RandomSelection}\index{Random\+Selection@{Random\+Selection}}
\subsection*{Static Public Member Functions}
\begin{DoxyCompactItemize}
\item 
static const arma\+::\+Col$<$ size\+\_\+t $>$ \textbf{ Select} (const arma\+::mat \&data, const size\+\_\+t m)
\begin{DoxyCompactList}\small\item\em Randomly select the specified number of points in the dataset. \end{DoxyCompactList}\end{DoxyCompactItemize}


\subsection{Detailed Description}


Definition at line 22 of file random\+\_\+selection.\+hpp.



\subsection{Member Function Documentation}
\mbox{\label{classmlpack_1_1kernel_1_1RandomSelection_aa80002884200d7b328b897a56b158192}} 
\index{mlpack\+::kernel\+::\+Random\+Selection@{mlpack\+::kernel\+::\+Random\+Selection}!Select@{Select}}
\index{Select@{Select}!mlpack\+::kernel\+::\+Random\+Selection@{mlpack\+::kernel\+::\+Random\+Selection}}
\subsubsection{Select()}
{\footnotesize\ttfamily static const arma\+::\+Col$<$size\+\_\+t$>$ Select (\begin{DoxyParamCaption}\item[{const arma\+::mat \&}]{data,  }\item[{const size\+\_\+t}]{m }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [inline]}, {\ttfamily [static]}}



Randomly select the specified number of points in the dataset. 


\begin{DoxyParams}{Parameters}
{\em data} & Dataset to sample from. \\
\hline
{\em m} & Number of points to select. \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
Indices of selected points from the dataset. 
\end{DoxyReturn}


Definition at line 32 of file random\+\_\+selection.\+hpp.



References mlpack\+::math\+::\+Rand\+Int().



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/nystroem\+\_\+method/\textbf{ random\+\_\+selection.\+hpp}\end{DoxyCompactItemize}
