MNE-CPP  beta 1.0
cosinefilter.h
Go to the documentation of this file.
1 //=============================================================================================================
37 #ifndef COSINEFILTER_H
38 #define COSINEFILTER_H
39 
40 //*************************************************************************************************************
41 //=============================================================================================================
42 // INCLUDES
43 //=============================================================================================================
44 
45 #include "utils_global.h"
46 
47 
48 //*************************************************************************************************************
49 //=============================================================================================================
50 // Qt INCLUDES
51 //=============================================================================================================
52 
53 
54 //*************************************************************************************************************
55 //=============================================================================================================
56 // Eigen INCLUDES
57 //=============================================================================================================
58 
59 #include <Eigen/Core>
60 #include <unsupported/Eigen/FFT>
61 
62 
63 //*************************************************************************************************************
64 //=============================================================================================================
65 // DEFINE NAMESPACE MNELIB
66 //=============================================================================================================
67 
68 namespace UTILSLIB
69 {
70 
71 
72 //*************************************************************************************************************
73 //=============================================================================================================
74 // USED NAMESPACES
75 //=============================================================================================================
76 
77 using namespace Eigen;
78 
79 
80 //*************************************************************************************************************
81 //=============================================================================================================
82 // DEFINES
83 //=============================================================================================================
84 #ifndef M_PI
85 #define M_PI 3.14159265358979323846 /* pi */
86 #endif
87 
88 #ifndef EIGEN_FFTW_DEFAULT
89 #define EIGEN_FFTW_DEFAULT
90 #endif
91 
92 
93 //=============================================================================================================
100 {
101 public:
102  enum TPassType {LPF, HPF, BPF, NOTCH };
103 
104  //=========================================================================================================
109  CosineFilter();
110 
111  //=========================================================================================================
123  CosineFilter(int fftLength, float lowpass, float lowpass_width, float highpass, float highpass_width, double sFreq, TPassType type);
124 
125  RowVectorXcd m_dFFTCoeffA;
126  RowVectorXd m_dCoeffA;
127 };
128 
129 } // NAMESPACE
130 
131 #endif // COSINEFILTER_H
#define UTILSSHARED_EXPORT
Definition: utils_global.h:57
RowVectorXcd m_dFFTCoeffA
Definition: cosinefilter.h:125
utils library export/import macros.
Creates a cosine filter response in the frequency domain.
Definition: cosinefilter.h:99