Goodness of Fit Metric for Circle Fits



All,

I have been trying to fit circles, portions of circles and arcs to my
data. Now I am in need of a metric for the goodness of fit. (Maybe
R-squared? correlation?).

The equation of the circle I use is
y.^2 + x.^2 + p1.*y + p2.*x + p3 = 0;

I have been using a number of methods to fit the data (circfit being
one of them and some other scripts that I have written). Now I need to
evaluate the performance of these methods. The question is primarily,
given parameters (p1, p2 p3) and x, how do I generate 'y_fit'?

I tried
angles = acos((x - centre_x)/radius);
y_fit = centre_y + radius*sin(angles);

And then compute the correlation between y & y_fit. However I am not
convinced that this is the best solution. If you can provide me some
insights/alternative methods, I would much appreciate it.

Regards
Vijit

.



Relevant Pages

  • Re: Defining new symbols in a robust manner
    ... The second is "--oo", i.e. a line with two circles, which each should contain a small integer or a single letter. ... and the circles appropriately sized to fit the text. ... Searching on google for "defining new symbols in latex" and multiple variants thereof mostly yields references to predefined symbols, and I've been completely unable to find good pointers on what the kosher way is to define "robust" mathematical symbols in LaTeX. ...
    (comp.text.tex)
  • Fit sphere to planar circles
    ... I'm confident that the average of the X and Y columns represent the X and Y sphere centre, but I don't know the best way to get the Z location. ... A simple average of Z locations is inaccurate because the detected circles are not necessarily centrally detected along the Z-direction. ... Perhaps I could try to fit a curve to the radii values and find its peak, but I'm not sure how to fit anything robustly to so few data points. ...
    (comp.soft-sys.matlab)
  • Re: Problems finding out the area of a 0.5mm circle.
    ... wrote:>I'm still unsure how to find out how many circles with an area of>7850nm2 will fit into a circle with the area of 196250000000nm2. ... in my>novice way I am assuming that I would divide 196250000000nm2 by>7850nm2, but as I am dealing with squared units I wonder if a simple>division is inapplicable? ... How many unit diameter circles will fit into a rectangle that is 8 by ...
    (uk.education.maths)
  • Re: Haas VF fixture offset hell
    ... displays the geometry with pan, zoom, fit, etc functions. ... points, lines and circles. ... It uses OpenGL (which yes, is overkill for ...
    (alt.machines.cnc)
  • Re: How to extract statistics after using
    ... Peter Perkins wrote: ... How to extract statistics after using "fit" function? ... I mean "GOODNESS"? ...
    (comp.soft-sys.matlab)