PPCKO: Principal Predictive Components for Estimating an Autoregressive Operator
 
Loading...
Searching...
No Matches
removing_nan< T, MA_t > Class Template Reference

Template class for removing NaNs from an Eigen::Matrix. More...

#include <removing_nan.hpp>

Public Member Functions

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)
 

Detailed Description

template<typename T, REM_NAN MA_t>
class removing_nan< T, MA_t >

Template class for removing NaNs from an Eigen::Matrix.

Template Parameters
Tis the type stored
MA_tis the way of removing non-dummy NaNs: 'MR': replacing with the average of the row. 'ZR': replacing with 0s

Constructor & Destructor Documentation

◆ removing_nan()

template<typename T, REM_NAN MA_t>
template<typename STOR_OBJ>
removing_nan< T, MA_t >::removing_nan ( STOR_OBJ && data)
inline

Constructor taking the matrix from which NaNs have to be removed.

Parameters
datamatrix from which removing NaNs

Universal constructor: move semantic used to optimazing handling big size objects

Member Function Documentation

◆ data()

template<typename T, REM_NAN MA_t>
KO_Traits::StoringMatrix removing_nan< T, MA_t >::data ( ) const
inline

Getter for the data matrix.

Returns
the private m_data

◆ row_removal()

template<typename T, REM_NAN MA_t>
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
rowrow 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: