Click here to Skip to main content
15,922,533 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Imagine :
I need to smooth out a curve of values..
At this moment , it looks rather spiky.
I need to define the smoothness of the curve.

Now i used a accelerate and decellerate trick , to find the smoothest curve , but it easily goes to wobly and can shoot out of range.

1 solution

A moving average will smooth out rapid fluctuations. You can vary the width of the sliding window, and use different types of average (simple, weighted, exponential etc).

Share this answer

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900