I have a simulation result curve which is y=f(x), it has some oscillation between some distance interval . I like to smooth out the oscillation by doing some moving average