I am in dire need to using a moving average smoothing technique in my current Java project. I would like to achieve the same thing as MATLAB is achieving using smooth() function.
Does anyone know whether Apache, or any other library does it? Perhaps there is some code online I could reuse that implements this strategy?
Moving average is just a one line practically. You can find different alternatives here. For instance exponential moving average can be implemented as
s(i)=a*y(i)+(1-a)*s(i-1), wherey(i)is the data ands(i)is the average.