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

#include <filteroperator.h>

Inheritance diagram for MNEBrowseRawQt::FilterOperator:
MNEBrowseRawQt::MNEOperator

Public Types

enum  DesignMethod { Tschebyscheff, Cosine }
 
enum  FilterType { LPF, HPF, BPF, NOTCH }
 
- Public Types inherited from MNEBrowseRawQt::MNEOperator
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
 
- Public Member Functions inherited from MNEBrowseRawQt::MNEOperator
 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
 
- Public Attributes inherited from MNEBrowseRawQt::MNEOperator
enum MNEBrowseRawQt::MNEOperator::OperatorType m_OperatorType
 
QString m_sName
 

Detailed Description

DECLARE CLASS FilterOperator

Definition at line 106 of file filteroperator.h.

Constructor & Destructor Documentation

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

Parameters
unique_namedefines the name of the generated filter
typeof the filter: LPF, HPF, BPF, NOTCH (from enum FilterType)
orderrepresents the order of the filter, the higher the higher is the stopband attenuation
centerfreqdetermines the center of the frequency
bandwidthignored if FilterType is set to LPF,HPF. if NOTCH/BPF: bandwidth of stop-/passband
parkswidthdetermines the width of the filter slopes (steepness)
sFreqsampling frequency
fftlengthlength of the fft (multiple integer of 2^x)

Definition at line 67 of file filteroperator.cpp.

Member Function Documentation

RowVectorXd FilterOperator::applyFFTFilter ( const RowVectorXd &  data) const

FilterOperator::FilterOperator

Parameters
datathe input data which is to be filtered
Returns
a row vector truncated by numberFilterTaps/2 at front and end

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.

Member Data Documentation

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.


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