View Full Version : Graph non-linearity calculation
thavamaran
Jul2-09, 05:54 AM
Hi guys, im currently undergoing process of my final engineering project. so im analyzing my sensor via graph. so i have attach two graph image whereby i need to compare the actual output which is in blue line and red line is the actual linearity graph which how it suppose to be. so now i need to find the drifting percentage between the actual graph and the linearity graph. i need idea how to do it, can anyone guide me through please. thank you.
in second graph i have pointed out the drifted point from linearity form. please guide me through.
HallsofIvy
Jul2-09, 06:48 AM
I presume that by the "drift" you mean the difference between the observed value (blue line) and the predicted value (red line). Calling the observed value yo(x) and the predicted (linear) value yp(x), the "percentage drift" is
\frac{|y_o(x)- y_p(x)|}{y_p(x)}
written as a percent.
thavamaran
Jul2-09, 07:28 AM
So you mean by A=blue line and B=red line, ((A-B)/B)x100% right. so that means this equation goes for point of the drifted value right, so its for point by point analysis. is there any possibilities for the entire blue line drifting equation compare to red line equation?
thanks a lot
thavamaran
Jul2-09, 07:37 AM
come back to your equation, how if the blue line value is smaller than red line? like A=1, B=2, its going to be in negative form?
HallsofIvy
Jul2-09, 09:40 AM
That was why I suggested using absolute value. If you want a single number for the entire graph you might use either
\frac{\int |y_o(x)- y_p(x)|dx}{\int y_p(x) dx}
or
\frac{\sqrt{\int{(y_o(x)- y_p(x))^2 dx}}}{\int y_p(x)dx}
(A third measure that is sometimes used is
max\left(\frac{|y_o(x)-y_p(x)|}{y_p(x)}\right))
vBulletin® v3.7.6, Copyright ©2000-2009, Jelsoft Enterprises Ltd.