v2.0.0
Loading...
Searching...
No Matches
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
 Named filter-design parameter descriptor holding a human-readable name and description (e.g. design method or filter type). More...
class  RTPROCESSINGLIB::FilterKernel
 The FilterKernel class provides methods to create/design a FIR filter kernel. More...

Namespaces

namespace  RTPROCESSINGLIB
 Real-time signal processing (filtering, averaging, HPI fitting, noise reduction).

Macros

#define metatype_filterkernel
#define metatype_filterkernel

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:

  • Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
  • Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
  • Neither the name of MNE-CPP authors nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.

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.

Macro Definition Documentation

◆ metatype_filterkernel [1/2]

#define metatype_filterkernel

Definition at line 279 of file filterkernel.h.

◆ metatype_filterkernel [2/2]

#define metatype_filterkernel

Definition at line 279 of file filterkernel.h.