ios - Calculating the equation of a zig zag line on a graph -


i have plotted time v/s hardware sensor value graph. have many readings , want calculate mean or possible value (may equation of zig zag line, may oscillatory motion or harmonic motion) compare multiple readings.

i recording data @ interval of 0.01 seconds.

here graph plot of single reading: enter image description here

here graph plot of multiple readings: enter image description here

also, equation of curve can calculated. data can divided time (2 second blocks), calculate equation of curve @ time.

add each value buffer when plot it, can calculate whatever want.

for mean sum buffer contents , divide number of entries in buffer.

to find equations curves, this page should help.


Comments

Popular posts from this blog

Android : Making Listview full screen -

javascript - Parse JSON from the body of the POST -

javascript - Chrome Extension: Interacting with iframe embedded within popup -