Forum Discussion
Altera_Forum
Honored Contributor
13 years ago --- Quote Start --- For a 32 'sample' IRF I'd do: y(n) = y(n-1) - y(n-1)/32 + x(n) the average is then y(n)/32. --- Quote End --- Unfortunately your equation does not match 32 stage running averager at all. values shoot up very high and high frequencies are passed. But it works if: y(n) = y(n-1) - y(n-1)/32 + x(n)/32