06-14-2007 12:27 PM
06-14-2007 05:27 PM
2verb:
Your code did not attach.
And I'm not going to hit you over the head with a stick for that ![]()
06-14-2007 05:53 PM
06-18-2007 01:55 PM
Unfortunetely I can not read your VI since I have LV7.1 only.
Nevertheless, I can see why adding linear noise to X & Y components of data points (Xj, Yj) changes statistics for the Radius R.
Let Xj = R*cosFj + Aj and Yj = R*sinFj + Bj , where A and B are zero-mean noise <A>=<B>=0. Note that (R*cosFj , R*sinFj) , j=1,..,N are points located exactly on the circle of radius R.
New radii of perturbed data points are:
Rj ^2 = Xj^2 + Yj^2 = R^2*( cosFj ^2 + sinFj ^2) + 2*Aj *R*cosFj + Aj^2 + 2*Bj *R*cosFj + Bj^2
And the mean (for zero-mean noise):
<R^2> = R^2 + <A^2> + <B^2> which is larger than nominal value of R^2.
To properly simulate noise to data points without changing statistics for R, one has to do that in polar coordinates similar to the following:
Xj = (R + Cj) * cos(Fj + Dj), Yj = (R+Cj) * sin(Fj + Dj), where <C>=<D>=0 and Dj shall be uniformly distributed in 0, 2*pi range.
All the above apply to computer simulations only. In real life noise that one gets in experimental data is specific to the measurement setup. I can not tell what is the noise in your particular setup and how it affects accuracy of circle fitting function.
06-18-2007 02:49 PM
06-18-2007 03:16 PM
06-18-2007 05:00 PM
06-18-2007 05:13 PM