design_eegfiltnew#
- design_eegfiltnew(srate, *, locutoff=None, hicutoff=None, filtorder=None, revfilt=False, minphase=False)#
Design the Hamming-windowed FIR applied by
pop_eegfiltnew.- Parameters:
srate (float) – Sampling rate in Hz.
locutoff (float | None) – Lower passband edge in Hz.
None, 0, or empty means none.hicutoff (float | None) – Upper passband edge in Hz.
None, 0, or empty means none.filtorder (int | None) – Even FIR order. Omit it to use the default order heuristic.
revfilt (bool) – Design a notch or highpass instead of a bandpass or lowpass.
minphase (bool) – Convert the coefficients to minimum phase.
- Returns:
Coefficients and the applied design.
cutofflists the -6 dB edges in Hz, anddfis the transition width in Hz. A highpass is designed as a reversed lowpass:locutoffisNone,hicutoffis the passband edge, andrevfiltis true.- Return type: