eegprep.firws#
- eegprep.firws(m, f, t=None, w=None)#
Designs windowed sinc type I linear phase FIR filter.
Parameters#
- mint
Filter order (mandatory even).
- ffloat or sequence of float
Vector or scalar of cutoff frequency/ies (-6 dB; pi rad / sample).
- tstr, optional
‘high’ for highpass, ‘stop’ for bandstop filter (default low-/bandpass).
- warray_like, optional
Vector of length m + 1 defining window (default hamming).
Returns#
- bnp.ndarray
Filter coefficients.
- afloat
Always 1 (FIR filter).
Examples#
fs = 500; cutoff = 0.5; df = 1; m = firwsord(‘hamming’, fs, df)[0] b, a = firws(m, cutoff / (fs / 2), ‘high’, scipy.signal.windows.hamming(m + 1))
Notes#
Based on a MATLAB implementation by Andreas Widmann, University of Leipzig, 2005.