-
Notifications
You must be signed in to change notification settings - Fork 28
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
accelerometer cannot be summarized in transformer anymore #336
Comments
Good question - I will think about this. |
Now I have been thinking (and even implemented a prototype for buffering of data -- see #338). But I've come to the conclusion that introducing a buffer of data (similar to the old Instead, we need to define a new This measure and its probe should be part of a sampling package. You can either create your own sampling package or you can provide me with the code and I can add is as part of the -o- In general - can you provide some (scientific) description of how to process accelerometer/gyroscope data in a standard way? We could implements this as part of CAMS. |
I created some (actually 4, I wasn't able to figure out how to combine everything for the non master branch) pull requests for a new sensor, the NON_GRAVITATIONAL_ACCELERATION_AVERAGE:
In general it works just like the Ambient Light sensor, where the accelerometer is averaged over a period of time. I summarized it in 7 variables:
using the normal average and average of squared value, the standard deviation can also be computed later: |
Now the new |
In the previous versions (pre 1.0.0), the accelerometer was a multidatum. This was usefull as I could add a transformer that immedieately took the average of all the values (and average of the squared values). Therefore I wouldn't need to safe the countless individual values.
In the new version the accelerometer (e.g. NON_GRAVITATIONAL_ACCELERATION) does not give a multidatum anymore. Therefore, the previous approach doesn't really work anymore. Is there away to avoid saving all individual values and to save only the average, using a transformer or some other way?
The text was updated successfully, but these errors were encountered: