我正在使用以下指南:
http://www.neurotraces.com/scilab/scilab2/node50.html
我对这条线路特别困难:
hz = horner (hpoly, (1/%z))
有没有办法在numpy中使用有理函数参数来计算多项式?
编辑:上面的代码来自链接。它是scilab。
valcoeff = wfir ('lp', 4, [.2 0], 'hm', [0 0])
hpoly = poly (valcoeff, 'z','coeff')
hz = horner (hpoly, (1/%z))
lisys = syslin ('d', hz)
到目前为止,这是我尝试在python中移植它:
valcoeff = signal.firwin( 130, [1./128, 64./128], pass_zero=False )
hpoly = numpy.poly1d( valcoeff, variable= 'z' )