赞
踩
#####################################
# 带通滤波,0.5~70hz
#####################################
def butterBandPassFilter(lowcut, highcut, samplerate, order):
"生成巴特沃斯带通滤波器"
semiSampleRate = samplerate*0.5
low = lowcut / semiSampleRate
high = highcut / semiSampleRate
b,a = signal.butter(order,[low,high],btype='bandpass')
print("bandpass:","b.shape:",b.shape,"a.shape:",a.
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。