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


This is a class implementation of simple median imputation.  


\subsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\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 median of the given dimension. \end{DoxyCompactList}\end{DoxyCompactItemize}


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

This is a class implementation of simple median imputation. 

replace missing value with middle or average of middle values 
\begin{DoxyTemplParams}{Template Parameters}
{\em T} & Type of armadillo matrix \\
\hline
\end{DoxyTemplParams}


Definition at line 25 of file median\+\_\+imputation.\+hpp.



\subsection{Member Function Documentation}
\mbox{\label{classmlpack_1_1data_1_1MedianImputation_a94b8353ed4d68b10e2dd59d5e7dc15ca}} 
\index{mlpack\+::data\+::\+Median\+Imputation@{mlpack\+::data\+::\+Median\+Imputation}!Impute@{Impute}}
\index{Impute@{Impute}!mlpack\+::data\+::\+Median\+Imputation@{mlpack\+::data\+::\+Median\+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 median of the given dimension. 

The result is overwritten to the input matrix.


\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 38 of file median\+\_\+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.\+0/src/mlpack/core/data/imputation\+\_\+methods/\textbf{ median\+\_\+imputation.\+hpp}\end{DoxyCompactItemize}
