\section{Randomized\+Block\+Krylov\+S\+V\+D\+Policy Class Reference}
\label{classmlpack_1_1pca_1_1RandomizedBlockKrylovSVDPolicy}\index{Randomized\+Block\+Krylov\+S\+V\+D\+Policy@{Randomized\+Block\+Krylov\+S\+V\+D\+Policy}}


Implementation of the randomized block krylov S\+VD policy.  


\subsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
\textbf{ Randomized\+Block\+Krylov\+S\+V\+D\+Policy} (const size\+\_\+t max\+Iterations=2, const size\+\_\+t block\+Size=0)
\begin{DoxyCompactList}\small\item\em Use randomized block krylov S\+VD method to perform the principal components analysis (\doxyref{P\+CA}{p.}{classmlpack_1_1pca_1_1PCA}). \end{DoxyCompactList}\item 
void \textbf{ Apply} (const arma\+::mat \&data, const arma\+::mat \&centered\+Data, arma\+::mat \&transformed\+Data, arma\+::vec \&eig\+Val, arma\+::mat \&eigvec, const size\+\_\+t rank)
\begin{DoxyCompactList}\small\item\em Apply Principal Component Analysis to the provided data set using the randomized block krylov S\+VD method. \end{DoxyCompactList}\item 
size\+\_\+t \textbf{ Block\+Size} () const
\begin{DoxyCompactList}\small\item\em Get the block size. \end{DoxyCompactList}\item 
size\+\_\+t \& \textbf{ Block\+Size} ()
\begin{DoxyCompactList}\small\item\em Modify the block size. \end{DoxyCompactList}\item 
size\+\_\+t \textbf{ Max\+Iterations} () const
\begin{DoxyCompactList}\small\item\em Get the number of iterations for the power method. \end{DoxyCompactList}\item 
size\+\_\+t \& \textbf{ Max\+Iterations} ()
\begin{DoxyCompactList}\small\item\em Modify the number of iterations for the power method. \end{DoxyCompactList}\end{DoxyCompactItemize}


\subsection{Detailed Description}
Implementation of the randomized block krylov S\+VD policy. 

Definition at line 26 of file randomized\+\_\+block\+\_\+krylov\+\_\+method.\+hpp.



\subsection{Constructor \& Destructor Documentation}
\mbox{\label{classmlpack_1_1pca_1_1RandomizedBlockKrylovSVDPolicy_ac1342c7d2b3bf1a88bc5e3880966b0d5}} 
\index{mlpack\+::pca\+::\+Randomized\+Block\+Krylov\+S\+V\+D\+Policy@{mlpack\+::pca\+::\+Randomized\+Block\+Krylov\+S\+V\+D\+Policy}!Randomized\+Block\+Krylov\+S\+V\+D\+Policy@{Randomized\+Block\+Krylov\+S\+V\+D\+Policy}}
\index{Randomized\+Block\+Krylov\+S\+V\+D\+Policy@{Randomized\+Block\+Krylov\+S\+V\+D\+Policy}!mlpack\+::pca\+::\+Randomized\+Block\+Krylov\+S\+V\+D\+Policy@{mlpack\+::pca\+::\+Randomized\+Block\+Krylov\+S\+V\+D\+Policy}}
\subsubsection{Randomized\+Block\+Krylov\+S\+V\+D\+Policy()}
{\footnotesize\ttfamily \textbf{ Randomized\+Block\+Krylov\+S\+V\+D\+Policy} (\begin{DoxyParamCaption}\item[{const size\+\_\+t}]{max\+Iterations = {\ttfamily 2},  }\item[{const size\+\_\+t}]{block\+Size = {\ttfamily 0} }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [inline]}}



Use randomized block krylov S\+VD method to perform the principal components analysis (\doxyref{P\+CA}{p.}{classmlpack_1_1pca_1_1PCA}). 


\begin{DoxyParams}{Parameters}
{\em max\+Iterations} & Number of iterations for the power method (Default\+: 2). \\
\hline
{\em block\+Size} & The block size, must be $>$= rank (Default\+: rank + 10). \\
\hline
\end{DoxyParams}


Definition at line 37 of file randomized\+\_\+block\+\_\+krylov\+\_\+method.\+hpp.



\subsection{Member Function Documentation}
\mbox{\label{classmlpack_1_1pca_1_1RandomizedBlockKrylovSVDPolicy_a596b042060783f8697e8f5a42b0fa20e}} 
\index{mlpack\+::pca\+::\+Randomized\+Block\+Krylov\+S\+V\+D\+Policy@{mlpack\+::pca\+::\+Randomized\+Block\+Krylov\+S\+V\+D\+Policy}!Apply@{Apply}}
\index{Apply@{Apply}!mlpack\+::pca\+::\+Randomized\+Block\+Krylov\+S\+V\+D\+Policy@{mlpack\+::pca\+::\+Randomized\+Block\+Krylov\+S\+V\+D\+Policy}}
\subsubsection{Apply()}
{\footnotesize\ttfamily void Apply (\begin{DoxyParamCaption}\item[{const arma\+::mat \&}]{data,  }\item[{const arma\+::mat \&}]{centered\+Data,  }\item[{arma\+::mat \&}]{transformed\+Data,  }\item[{arma\+::vec \&}]{eig\+Val,  }\item[{arma\+::mat \&}]{eigvec,  }\item[{const size\+\_\+t}]{rank }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [inline]}}



Apply Principal Component Analysis to the provided data set using the randomized block krylov S\+VD method. 


\begin{DoxyParams}{Parameters}
{\em data} & Data matrix. \\
\hline
{\em centered\+Data} & Centered data matrix. \\
\hline
{\em transformed\+Data} & Matrix to put results of \doxyref{P\+CA}{p.}{classmlpack_1_1pca_1_1PCA} into. \\
\hline
{\em eig\+Val} & Vector to put eigenvalues into. \\
\hline
{\em eigvec} & Matrix to put eigenvectors (loadings) into. \\
\hline
{\em rank} & Rank of the decomposition. \\
\hline
\end{DoxyParams}


Definition at line 56 of file randomized\+\_\+block\+\_\+krylov\+\_\+method.\+hpp.



References Randomized\+Block\+Krylov\+S\+V\+D\+::\+Apply().

\mbox{\label{classmlpack_1_1pca_1_1RandomizedBlockKrylovSVDPolicy_a3abd143be875c389ea92c4d54057c591}} 
\index{mlpack\+::pca\+::\+Randomized\+Block\+Krylov\+S\+V\+D\+Policy@{mlpack\+::pca\+::\+Randomized\+Block\+Krylov\+S\+V\+D\+Policy}!Block\+Size@{Block\+Size}}
\index{Block\+Size@{Block\+Size}!mlpack\+::pca\+::\+Randomized\+Block\+Krylov\+S\+V\+D\+Policy@{mlpack\+::pca\+::\+Randomized\+Block\+Krylov\+S\+V\+D\+Policy}}
\subsubsection{Block\+Size()\hspace{0.1cm}{\footnotesize\ttfamily [1/2]}}
{\footnotesize\ttfamily size\+\_\+t Block\+Size (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption}) const\hspace{0.3cm}{\ttfamily [inline]}}



Get the block size. 



Definition at line 86 of file randomized\+\_\+block\+\_\+krylov\+\_\+method.\+hpp.

\mbox{\label{classmlpack_1_1pca_1_1RandomizedBlockKrylovSVDPolicy_a3380590a2f71ed10c3e81242b7e0faeb}} 
\index{mlpack\+::pca\+::\+Randomized\+Block\+Krylov\+S\+V\+D\+Policy@{mlpack\+::pca\+::\+Randomized\+Block\+Krylov\+S\+V\+D\+Policy}!Block\+Size@{Block\+Size}}
\index{Block\+Size@{Block\+Size}!mlpack\+::pca\+::\+Randomized\+Block\+Krylov\+S\+V\+D\+Policy@{mlpack\+::pca\+::\+Randomized\+Block\+Krylov\+S\+V\+D\+Policy}}
\subsubsection{Block\+Size()\hspace{0.1cm}{\footnotesize\ttfamily [2/2]}}
{\footnotesize\ttfamily size\+\_\+t\& Block\+Size (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [inline]}}



Modify the block size. 



Definition at line 88 of file randomized\+\_\+block\+\_\+krylov\+\_\+method.\+hpp.

\mbox{\label{classmlpack_1_1pca_1_1RandomizedBlockKrylovSVDPolicy_a420770944a5b0c7a852c4ec372c4a2d1}} 
\index{mlpack\+::pca\+::\+Randomized\+Block\+Krylov\+S\+V\+D\+Policy@{mlpack\+::pca\+::\+Randomized\+Block\+Krylov\+S\+V\+D\+Policy}!Max\+Iterations@{Max\+Iterations}}
\index{Max\+Iterations@{Max\+Iterations}!mlpack\+::pca\+::\+Randomized\+Block\+Krylov\+S\+V\+D\+Policy@{mlpack\+::pca\+::\+Randomized\+Block\+Krylov\+S\+V\+D\+Policy}}
\subsubsection{Max\+Iterations()\hspace{0.1cm}{\footnotesize\ttfamily [1/2]}}
{\footnotesize\ttfamily size\+\_\+t Max\+Iterations (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption}) const\hspace{0.3cm}{\ttfamily [inline]}}



Get the number of iterations for the power method. 



Definition at line 81 of file randomized\+\_\+block\+\_\+krylov\+\_\+method.\+hpp.

\mbox{\label{classmlpack_1_1pca_1_1RandomizedBlockKrylovSVDPolicy_acda675ab4ab86b95c92bc33bc391a61b}} 
\index{mlpack\+::pca\+::\+Randomized\+Block\+Krylov\+S\+V\+D\+Policy@{mlpack\+::pca\+::\+Randomized\+Block\+Krylov\+S\+V\+D\+Policy}!Max\+Iterations@{Max\+Iterations}}
\index{Max\+Iterations@{Max\+Iterations}!mlpack\+::pca\+::\+Randomized\+Block\+Krylov\+S\+V\+D\+Policy@{mlpack\+::pca\+::\+Randomized\+Block\+Krylov\+S\+V\+D\+Policy}}
\subsubsection{Max\+Iterations()\hspace{0.1cm}{\footnotesize\ttfamily [2/2]}}
{\footnotesize\ttfamily size\+\_\+t\& Max\+Iterations (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [inline]}}



Modify the number of iterations for the power method. 



Definition at line 83 of file randomized\+\_\+block\+\_\+krylov\+\_\+method.\+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/pca/decomposition\+\_\+policies/\textbf{ randomized\+\_\+block\+\_\+krylov\+\_\+method.\+hpp}\end{DoxyCompactItemize}
