eegprep.firwsord#
- eegprep.firwsord(wintype, fs, df, dev=None)#
Estimate windowed sinc FIR filter order depending on window type and requested transition band width.
Parameters#
- wintypestr
Window type. One of ‘rectangular’, ‘hann’, ‘hamming’, ‘blackman’, or ‘kaiser’.
- fsfloat
Sampling frequency.
- dffloat
Requested transition band width.
- devfloat, optional
Maximum passband deviation/ripple (Kaiser window only).
Returns#
- mint
Estimated filter order.
- devfloat
Maximum passband deviation/ripple.
Notes#
Based on a MATLAB implementation by Andreas Widmann, University of Leipzig, 2005.