\section{Custom\+Imputation$<$ T $>$ Class Template Reference}
\label{classmlpack_1_1data_1_1CustomImputation}\index{Custom\+Imputation$<$ T $>$@{Custom\+Imputation$<$ T $>$}}


A simple custom imputation class.  


\subsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
\textbf{ Custom\+Imputation} (T custom\+Value)
\item 
void \textbf{ Impute} (arma\+::\+Mat$<$ T $>$ \&input, const T \&mapped\+Value, const size\+\_\+t dimension, const bool column\+Major=true)
\begin{DoxyCompactList}\small\item\em Impute function searches through the input looking for mapped\+Value and replaces it with the user-\/defined custom value of the given dimension. \end{DoxyCompactList}\end{DoxyCompactItemize}


\subsection{Detailed Description}
\subsubsection*{template$<$typename T$>$\newline
class mlpack\+::data\+::\+Custom\+Imputation$<$ T $>$}

A simple custom imputation class. 


\begin{DoxyTemplParams}{Template Parameters}
{\em T} & Type of armadillo matrix \\
\hline
\end{DoxyTemplParams}


Definition at line 24 of file custom\+\_\+imputation.\+hpp.



\subsection{Constructor \& Destructor Documentation}
\mbox{\label{classmlpack_1_1data_1_1CustomImputation_a66df4ec3bf18ec99c7cd44df6ef1f092}} 
\index{mlpack\+::data\+::\+Custom\+Imputation@{mlpack\+::data\+::\+Custom\+Imputation}!Custom\+Imputation@{Custom\+Imputation}}
\index{Custom\+Imputation@{Custom\+Imputation}!mlpack\+::data\+::\+Custom\+Imputation@{mlpack\+::data\+::\+Custom\+Imputation}}
\subsubsection{Custom\+Imputation()}
{\footnotesize\ttfamily \textbf{ Custom\+Imputation} (\begin{DoxyParamCaption}\item[{T}]{custom\+Value }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [inline]}}



Definition at line 27 of file custom\+\_\+imputation.\+hpp.



\subsection{Member Function Documentation}
\mbox{\label{classmlpack_1_1data_1_1CustomImputation_a94b8353ed4d68b10e2dd59d5e7dc15ca}} 
\index{mlpack\+::data\+::\+Custom\+Imputation@{mlpack\+::data\+::\+Custom\+Imputation}!Impute@{Impute}}
\index{Impute@{Impute}!mlpack\+::data\+::\+Custom\+Imputation@{mlpack\+::data\+::\+Custom\+Imputation}}
\subsubsection{Impute()}
{\footnotesize\ttfamily void Impute (\begin{DoxyParamCaption}\item[{arma\+::\+Mat$<$ T $>$ \&}]{input,  }\item[{const T \&}]{mapped\+Value,  }\item[{const size\+\_\+t}]{dimension,  }\item[{const bool}]{column\+Major = {\ttfamily true} }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [inline]}}



Impute function searches through the input looking for mapped\+Value and replaces it with the user-\/defined custom value of the given dimension. 

The result is overwritten to the input, not creating any copy. Custom value must be set when initializing the \doxyref{Custom\+Imputation}{p.}{classmlpack_1_1data_1_1CustomImputation} object.


\begin{DoxyParams}{Parameters}
{\em input} & Matrix that contains mapped\+Value. \\
\hline
{\em mapped\+Value} & Value that the user wants to get rid of. \\
\hline
{\em dimension} & Index of the dimension of the mapped\+Value. \\
\hline
{\em column\+Major} & State of whether the input matrix is column\+Major or not. \\
\hline
\end{DoxyParams}


Definition at line 44 of file custom\+\_\+imputation.\+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.\+1/src/mlpack/core/data/imputation\+\_\+methods/\textbf{ custom\+\_\+imputation.\+hpp}\end{DoxyCompactItemize}
