MNECPP
0.1.9
A Framework for Electrophysiology

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 overlapadd method [2] for frequency filtering of an input sequence. In this regard, the filter coefficients of a certain filter order are zeropadded 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 circularconvolution, the input sequence is given by the FFTlengthNumFilterTaps. More...
#include "../rtprocessing_global.h"
#include <Eigen/Core>
#include <QString>
#include <QMetaType>
#include <QVector>
#include <QDebug>
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...  
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 overlapadd method [2] for frequency filtering of an input sequence. In this regard, the filter coefficients of a certain filter order are zeropadded 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 circularconvolution, the input sequence is given by the FFTlengthNumFilterTaps.
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 409680=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.