A simple custom imputation class. More...
Public Member Functions | |
| CustomImputation (T customValue) | |
| 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 user-defined custom value of the given dimension. More... | |
A simple custom imputation class.
| T | Type of armadillo matrix |
Definition at line 24 of file custom_imputation.hpp.
|
inline |
Definition at line 27 of file custom_imputation.hpp.
|
inline |
Impute function searches through the input looking for mappedValue 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 CustomImputation object.
| 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 44 of file custom_imputation.hpp.