Template class for removing NaNs from an Eigen::Matrix.
More...
#include <removing_nan.hpp>
|
| template<typename STOR_OBJ> |
| | removing_nan (STOR_OBJ &&data) |
| | Constructor taking the matrix from which NaNs have to be removed.
|
| |
| KO_Traits::StoringMatrix | data () const |
| | Getter for the data matrix.
|
| |
| void | row_removal (Eigen::Block< Eigen::Matrix< T,-1,-1 >, 1 > &row) |
| | Substituting non-dummy NaNs. Tag-dispacther.
|
| |
|
void | remove_nan () |
| | Function to remove the row (dummy NaNs)
|
| |
template<typename T,
REM_NAN MA_t>
class removing_nan< T, MA_t >
Template class for removing NaNs from an Eigen::Matrix.
- Template Parameters
-
| T | is the type stored |
| MA_t | is the way of removing non-dummy NaNs: 'MR': replacing with the average of the row. 'ZR': replacing with 0s |
◆ removing_nan()
template<typename STOR_OBJ>
Constructor taking the matrix from which NaNs have to be removed.
- Parameters
-
| data | matrix from which removing NaNs |
Universal constructor: move semantic used to optimazing handling big size objects
◆ data()
Getter for the data matrix.
- Returns
- the private m_data
◆ row_removal()
| void removing_nan< T, MA_t >::row_removal |
( |
Eigen::Block< Eigen::Matrix< T,-1,-1 >, 1 > & | row | ) |
|
|
inline |
Substituting non-dummy NaNs. Tag-dispacther.
- Parameters
-
| row | row from which removing non-dummy NaNs |
- Returns
- tag dispatching to the correct function to substitute non-dummy NaNs
The documentation for this class was generated from the following files: