Skip to main content

Crate bids_filter

Crate bids_filter 

Source
Expand description

Butterworth IIR filter with zero-phase filtfilt.

Implements scipy.signal.butter + scipy.signal.filtfilt for anti-alias filtering before downsampling, as used by PyBIDS.

Functionsยง

butter_bandpass
Butterworth band-pass filter coefficients.
butter_highpass
Butterworth high-pass filter coefficients.
butter_lowpass
Butterworth low-pass filter coefficients.
filtfilt
Zero-phase filtering: apply filter forward, then backward.
lfilter
Direct-form II transposed IIR filter (single-pass).
notch_filter
Notch (band-stop) filter using second-order IIR sections.
resample
Resample a signal from fs_old to fs_new using linear interpolation.