MNE-CPP  beta 1.0
Public Types | Public Member Functions | Public Attributes | List of all members
UTILSLIB::FilterData Class Reference

Public Types

enum  FilterType { LPF, HPF, BPF, NOTCH }
 

Public Member Functions

 FilterData (QString unique_name, FilterType type, int order, double centerfreq, double bandwidth, double parkswidth, qint32 fftlength=4096)
 
void fftTransformCoeffs ()
 fftTransformCoeffs transforms the calculated filter coefficients to frequency-domain
 
RowVectorXd applyFFTFilter (RowVectorXd &data)
 

Public Attributes

enum UTILSLIB::FilterData::FilterType m_Type
 
int m_iFilterOrder
 
int m_iFFTlength
 
RowVectorXd m_dCoeffA
 
RowVectorXd m_dCoeffB
 
RowVectorXcd m_dFFTCoeffA
 
RowVectorXcd m_dFFTCoeffB
 

Detailed Description

Definition at line 93 of file filterdata.h.

Constructor & Destructor Documentation

FilterData::FilterData ( QString  unique_name,
FilterType  type,
int  order,
double  centerfreq,
double  bandwidth,
double  parkswidth,
qint32  fftlength = 4096 
)

FilterData::FilterData

Parameters
[in]unique_namedefines the name of the generated filter
[in]typeof the filter: LPF, HPF, BPF, NOTCH (from enum FilterType)
[in]orderrepresents the order of the filter, the higher the higher is the stopband attenuation
[in]centerfreqdetermines the center of the frequency
[in]bandwidthignored if FilterType is set to LPF,HPF. if NOTCH/BPF: bandwidth of stop-/passband
[in]parkswidthdetermines the width of the filter slopes (steepness)

Definition at line 66 of file filterdata.cpp.

Member Data Documentation

RowVectorXd UTILSLIB::FilterData::m_dCoeffA

contains the forward filter coefficient set

Definition at line 127 of file filterdata.h.

RowVectorXd UTILSLIB::FilterData::m_dCoeffB

contains the backward filter coefficient set (empty if FIR filter)

Definition at line 128 of file filterdata.h.

RowVectorXcd UTILSLIB::FilterData::m_dFFTCoeffA

the FFT-transformed forward filter coefficient set, required for frequency-domain filtering, zero-padded to m_iFFTlength

Definition at line 130 of file filterdata.h.

RowVectorXcd UTILSLIB::FilterData::m_dFFTCoeffB

the FFT-transformed backward filter coefficient set, required for frequency-domain filtering, zero-padded to m_iFFTlength

Definition at line 131 of file filterdata.h.

int UTILSLIB::FilterData::m_iFFTlength

represents the filter length

Definition at line 125 of file filterdata.h.

int UTILSLIB::FilterData::m_iFilterOrder

represents the order of the filter instance

Definition at line 124 of file filterdata.h.


The documentation for this class was generated from the following files: