My output signal shall be computed by (meta code):
o = 0 # or some arbitrary initial value
for i in input:
o = (o * 99 + i) / 100
print o
I call this a "sliding mean", but maybe another term is established for this. (If so, mentioning this could help me researching this better ;-)
Is there a way to achieve this using the a / b coefficient arrays of IIRs or FIRs? What would they look like?
I'm aiming at a solution in Python / scipy.signal
.
Or is there another established way to achieve this which I can find in such libraries like numpy
, scipy
, pandas
, etc.?