0
我与图书馆“scipy.signal”在Python工作,我有下面的代码:误差Padlen在signal.filtfilt在Python
from scipy import signal
b = [ 0.001016 0.00507999 0.01015998 0.01015998 0.00507999 0.001016 ]
a = [ 1. -3.0820186 4.04351697 -2.76126457 0.97291013 -0.14063199]
data = [[ 1.]
[ 1.]
[ 1.]
...]
# length = 264
y = signal.filtfilt(b, a, data)
但是,当我执行的代码,我得到一个错误信息:
The length of the input vector x must be at least padlen, which is 18.
我该怎么办?