Smooth high-frequency data array with moving averages
Recently I had to implement a way to smooth high-frequency data from the phone's accelerometer. The refresh rate was 16ms, so there is a lot of noise, to simply fix it, I decided to go with moving averages.