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:
here graph plot of multiple readings:
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
Post a Comment