def test_filtfilt():
sr = 1000
freq = 100
b, a = butter(3, freq / (sr / 2), 'high')
for data in (data2, data3, data4):
x = filtfilt(b, a, data, axis=0)
y = Stream(data, chunksize=211, sr=sr).filtfilt(b, a).call()
assert eq(x, y)
评论列表
文章目录