This is a class implementation of simple median imputation. More...
Public Member Functions | |
void | Impute (arma::Mat< T > &input, const T &mappedValue, const size_t dimension, const bool columnMajor=true) |
Impute function searches through the input looking for mappedValue and replaces it with the median of the given dimension. More... | |
This is a class implementation of simple median imputation.
replace missing value with middle or average of middle values
T | Type of armadillo matrix |
Definition at line 25 of file median_imputation.hpp.
|
inline |
Impute function searches through the input looking for mappedValue and replaces it with the median of the given dimension.
The result is overwritten to the input matrix.
input | Matrix that contains mappedValue. |
mappedValue | Value that the user wants to get rid of. |
dimension | Index of the dimension of the mappedValue. |
columnMajor | State of whether the input matrix is columnMajor or not. |
Definition at line 38 of file median_imputation.hpp.