MNE-CPP
beta 1.0
|
#include <filteroperator.h>
Public Types | |
enum | DesignMethod { Tschebyscheff, Cosine } |
enum | FilterType { LPF, HPF, BPF, NOTCH } |
![]() | |
enum | OperatorType { FILTER, PCA, AVERAGE, UNKNOWN } |
Public Member Functions | |
FilterOperator (QString unique_name, FilterType type, int order, double centerfreq, double bandwidth, double parkswidth, double sFreq, qint32 fftlength=4096, DesignMethod method=Cosine) | |
void | fftTransformCoeffs () |
RowVectorXd | applyFFTFilter (const RowVectorXd &data) const |
![]() | |
MNEOperator (const MNEOperator &obj) | |
MNEOperator (OperatorType type) | |
Public Attributes | |
enum MNEBrowseRawQt::FilterOperator::DesignMethod | m_designMethod |
enum MNEBrowseRawQt::FilterOperator::FilterType | m_Type |
double | m_sFreq |
int | m_iFilterOrder |
int | m_iFFTlength |
double | m_dCenterFreq |
double | m_dBandwidth |
QString | m_sName |
RowVectorXd | m_dCoeffA |
RowVectorXd | m_dCoeffB |
RowVectorXcd | m_dFFTCoeffA |
RowVectorXcd | m_dFFTCoeffB |
![]() | |
enum MNEBrowseRawQt::MNEOperator::OperatorType | m_OperatorType |
QString | m_sName |
DECLARE CLASS FilterOperator
Definition at line 106 of file filteroperator.h.
FilterOperator::FilterOperator | ( | QString | unique_name, |
FilterType | type, | ||
int | order, | ||
double | centerfreq, | ||
double | bandwidth, | ||
double | parkswidth, | ||
double | sFreq, | ||
qint32 | fftlength = 4096 , |
||
DesignMethod | method = Cosine |
||
) |
FilterOperator::FilterOperator
unique_name | defines the name of the generated filter |
type | of the filter: LPF, HPF, BPF, NOTCH (from enum FilterType) |
order | represents the order of the filter, the higher the higher is the stopband attenuation |
centerfreq | determines the center of the frequency |
bandwidth | ignored if FilterType is set to LPF,HPF. if NOTCH/BPF: bandwidth of stop-/passband |
parkswidth | determines the width of the filter slopes (steepness) |
sFreq | sampling frequency |
fftlength | length of the fft (multiple integer of 2^x) |
Definition at line 67 of file filteroperator.cpp.
RowVectorXd FilterOperator::applyFFTFilter | ( | const RowVectorXd & | data | ) | const |
FilterOperator::FilterOperator
data | the input data which is to be filtered |
Definition at line 163 of file filteroperator.cpp.
void FilterOperator::fftTransformCoeffs | ( | ) |
Transforms the calculated filter coefficients to frequency-domain
Definition at line 144 of file filteroperator.cpp.
double MNEBrowseRawQt::FilterOperator::m_dBandwidth |
contains bandwidth of the filter.
Definition at line 158 of file filteroperator.h.
double MNEBrowseRawQt::FilterOperator::m_dCenterFreq |
contains center freq of the filter.
Definition at line 157 of file filteroperator.h.
RowVectorXd MNEBrowseRawQt::FilterOperator::m_dCoeffA |
contains the forward filter coefficient set.
Definition at line 162 of file filteroperator.h.
RowVectorXd MNEBrowseRawQt::FilterOperator::m_dCoeffB |
contains the backward filter coefficient set (empty if FIR filter).
Definition at line 163 of file filteroperator.h.
RowVectorXcd MNEBrowseRawQt::FilterOperator::m_dFFTCoeffA |
the FFT-transformed forward filter coefficient set, required for frequency-domain filtering, zero-padded to m_iFFTlength.
Definition at line 165 of file filteroperator.h.
RowVectorXcd MNEBrowseRawQt::FilterOperator::m_dFFTCoeffB |
the FFT-transformed backward filter coefficient set, required for frequency-domain filtering, zero-padded to m_iFFTlength.
Definition at line 166 of file filteroperator.h.
int MNEBrowseRawQt::FilterOperator::m_iFFTlength |
represents the filter length.
Definition at line 156 of file filteroperator.h.
int MNEBrowseRawQt::FilterOperator::m_iFilterOrder |
represents the order of the filter instance.
Definition at line 155 of file filteroperator.h.
double MNEBrowseRawQt::FilterOperator::m_sFreq |
the sampling frequency.
Definition at line 154 of file filteroperator.h.
QString MNEBrowseRawQt::FilterOperator::m_sName |
contains name of the filter.
Definition at line 160 of file filteroperator.h.