سؤال

The raw data retrieved from the Accelerometer sensor (samsung galaxy S) needs to be processed in order to create robust templates for each subject so i need to apply linear time interpolation because Due to the android SDK, the phone only outputs data values whenever there is a change in the sensor. Therefore, the time intervals between two sample points (acceleration values) are not always equal, which requires time interpolation. This ensures that the time-interval between two sample-points will be fixed.

So please help me how can i apply interpolation method on this data as the data will be containing X, Y, Z values. (any link for interpolation method will be most welcomed)

Update: These accelerometer data is generating from a persons walk while phone is in his waist pocket.

هل كانت مفيدة؟

المحلول 2

Are you sure that interpolation will meet your requirements?

To interpolate a value you need to know where previous and next points are, and if you are doing a real time analysis you only know where are the previous points.

I suggest you to have a look to this project: pedometer

It's using accelerometer for the same objective as you and the code is available.

Regards.

نصائح أخرى

Android sensor give output at constant at rate specified while registering. No need of interpolation

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top