MNE-CPP
beta 1.0
Main Page
Related Pages
Modules
Classes
Files
File List
File Members
MNE
utils
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
//=============================================================================================================
99
class
UTILSSHARED_EXPORT
CosineFilter
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
UTILSSHARED_EXPORT
#define UTILSSHARED_EXPORT
Definition:
utils_global.h:57
UTILSLIB::CosineFilter::m_dFFTCoeffA
RowVectorXcd m_dFFTCoeffA
Definition:
cosinefilter.h:125
Eigen
utils_global.h
utils library export/import macros.
UTILSLIB::CosineFilter::m_dCoeffA
RowVectorXd m_dCoeffA
Definition:
cosinefilter.h:126
UTILSLIB
Definition:
cosinefilter.h:68
UTILSLIB::CosineFilter
Creates a cosine filter response in the frequency domain.
Definition:
cosinefilter.h:99
Generated on Fri Mar 27 2015 22:54:32 for MNE-CPP by
1.8.9.1