feature function for accelerometer data