MNE-CPP  beta 1.0
Classes | Macros
filterdata.h File Reference

The FilterData class represents a derived class from an arbitrary MNEOperator class object. Thus, it is 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 <utils/parksmcclellan.h>
#include <Eigen/Core>
#include <Eigen/SparseCore>
#include <unsupported/Eigen/FFT>

Go to the source code of this file.

Classes

class  UTILSLIB::FilterData
 

Detailed Description

The FilterData class represents a derived class from an arbitrary MNEOperator class object. Thus, it is 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 Loren.nosp@m.z.Es.nosp@m.ch@tu.nosp@m.-ilm.nosp@m.enau..nosp@m.de; Florian Schlembach flori.nosp@m.an.s.nosp@m.chlem.nosp@m.bach.nosp@m.@tu-i.nosp@m.lmen.nosp@m.au.de; Christoph Dinh chdin.nosp@m.h@nm.nosp@m.r.mgh.nosp@m..har.nosp@m.vard..nosp@m.edu; Matti Hamalainen msh@n.nosp@m.mr.m.nosp@m.gh.ha.nosp@m.rvar.nosp@m.d.edu; Jens Haueisen jens..nosp@m.haue.nosp@m.isen@.nosp@m.tu-i.nosp@m.lmena.nosp@m.u.de
Version
1.0
Date
February, 2014

LICENSE

Copyright (C) 2014, Lorenz Esch, Florian Schlembach, Christoph Dinh and Matti Hamalainen. 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 filterdata.h.