Smoothing algorithm with android

view story

http://stackoverflow.com – I have developed a step detection app suing android. There I have filtered my sensor data(accelerometer data x, y, z) and need to smooth the signal with 5-point smoothing algorithm. I saw it in a research paper. I have search about that algorithm and couldn't find a proper resource which can use with android(java). Any one can give me a help that hove can I achieve this. here is my code to get accelerometer data and filtered with low-pass-filter package com.android.gait; import org.achartengine.GraphicalView; import android.hardware.Sensor; import android.hardware.SensorEvent; import andro (HowTos)