def butter_lowpass_filtfilt(data, *, cutoff, fs, order=5):
"""Lowpass filter data using a zero-phase filt-filt butterworth
filter.
Performs zero-phase digital filtering by processing the input data
in both the forward and reverse directions.
"""
b, a = butter_lowpass(cutoff, fs, order=order)
y = filtfilt(b, a, data, padlen=150)
return y
评论列表
文章目录