numpy.convolve()函数计算移动平均值和卷积

tes = np.array([1,2,3]) weight = np.ones(2)#计算卷积 array([1., 3., 5., 3.]) # weight = weight*(1/2)#计算移动平均数 array([0.5, 1.5, 2.5, 1.5]) result = np.convolve(tes,weight) result 参考连接python http://www.jav
相关文章
相关标签/搜索