[Mne_analysis] FIR filter in mne

Eric Larson larson.eric.d at gmail.com
Fri May 20 17:12:22 EDT 2016
Search archives:

You can use the IIR code -- a FIR filter can be expressed as an IIR filter
with a [1] for the denominator coefficient (i.e., a=[1.]).

If you need the FIR coefficients to be identical and want to stay in
Python, you'll have to wait until `firls` is implemented in SciPy:

https://github.com/scipy/scipy/pull/5989

In the meantime, though, you could compute the filter coefficients in
MATLAB, save them, and load them in Python. Also, make sure they used
forward-backward (acausal) filtering, and not one-pass (causal) FIR
filtering, as they will produce different results.

Eric


On Fri, May 20, 2016 at 5:03 PM, Moorselaar, D. van <d.van.moorselaar at vu.nl>
wrote:

> Hello,
>
> I am trying to replicate an EEG study that used Matlab with mne. This
> study reported to have used a bandpass two-way least-squares finite impulse
> response filter for power analyses.
>
> If I understand the MNE documentation correctly, in mne the
> forward-backward filtering option is only possible with iir filters?
>
> Is this correct or is the forward-backward option also implemented in the
> FIR filter.
>
> Thank you,
>
> Dirk van Moorselaar
>
>
> _______________________________________________
> Mne_analysis mailing list
> Mne_analysis at nmr.mgh.harvard.edu
> https://mail.nmr.mgh.harvard.edu/mailman/listinfo/mne_analysis
>
>
> The information in this e-mail is intended only for the person to whom it
> is
> addressed. If you believe this e-mail was sent to you in error and the
> e-mail
> contains patient information, please contact the Partners Compliance
> HelpLine at
> http://www.partners.org/complianceline . If the e-mail was sent to you in
> error
> but does not contain patient information, please contact the sender and
> properly
> dispose of the e-mail.
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.nmr.mgh.harvard.edu/pipermail/mne_analysis/attachments/20160520/ff56e22e/attachment.html 


More information about the Mne_analysis mailing list