MNE-CPP  0.1.9
A Framework for Electrophysiology
Classes | Macros
filterkernel.h File Reference

The FilterKernel class represents a filter object that generates the FIR filter coefficients using Park's McClellan's filter design algorithm [1] and offers a overlap-add method [2] for frequency filtering of an input sequence. In this regard, the filter coefficients of a certain filter order are zero-padded to fill a length of an multiple integer of a power of 2 in order to efficiently compute a FFT. The length of the FFT is given by the next power of 2 of the length of the input sequence. In order to avoid circular-convolution, the input sequence is given by the FFT-length-NumFilterTaps. More...

#include "../rtprocessing_global.h"
#include <Eigen/Core>
#include <QString>
#include <QMetaType>
#include <QVector>
#include <QDebug>
Include dependency graph for filterkernel.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  RTPROCESSINGLIB::FilterParameter
 The FilterParameter class. More...
 
class  RTPROCESSINGLIB::FilterKernel
 The FilterKernel class provides methods to create/design a FIR filter kernel. More...
 

Detailed Description

The FilterKernel class represents a filter object that generates the FIR filter coefficients using Park's McClellan's filter design algorithm [1] and offers a overlap-add method [2] for frequency filtering of an input sequence. In this regard, the filter coefficients of a certain filter order are zero-padded to fill a length of an multiple integer of a power of 2 in order to efficiently compute a FFT. The length of the FFT is given by the next power of 2 of the length of the input sequence. In order to avoid circular-convolution, the input sequence is given by the FFT-length-NumFilterTaps.

Author
Lorenz Esch lesch.nosp@m.@mgh.nosp@m..harv.nosp@m.ard..nosp@m.edu; Ruben Doerfel Ruben.nosp@m..Doe.nosp@m.rfel@.nosp@m.tu-i.nosp@m.lmena.nosp@m.u.de; Christoph Dinh chdin.nosp@m.h@nm.nosp@m.r.mgh.nosp@m..har.nosp@m.vard..nosp@m.edu
Since
0.1.3
Date
June, 2020

LICENSE

Copyright (C) 2020, Lorenz Esch, Ruben Doerfel, Christoph Dinh. All rights reserved.

Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

      e.g. FFT length=4096, NumFilterTaps=80 -> input sequence 4096-80=4016


      [1] http://en.wikipedia.org/wiki/Parks%E2%80%93McClellan_filter_design_algorithm
      [2] http://en.wikipedia.org/wiki/Overlap_add

Definition in file filterkernel.h.