Floating average filter10.may 2011
    Here is a demonstration of very simple filter. I don't know what is the correct name of this equation, but I call it "floating average". It does not need any array of last N values, it simply averages the old value with the new value in every iteration. This example is using two filters - one for the X coordinate of the red dot and the second for the Y coordinate.

    

Tags: javascript, floating average, iterative average, animation, html slider control