The following equation defines the one-pole filter :
y(n) = x(n) - a * y(n-1), 0 < a < 1.0
The single coefficient defines the gain and time-constant of the filter as follows :
Time constant :
Gain :
This algorithm is included in the SigLib DSP Library.
If you have found this solution useful then please do hit the Google (+1) button so that others may be able to find it as well.
No comments:
Post a Comment