A set of points can be fitted to the equation of a circle (circular regression) by minimizing either an algebraic or a geometric distance.
To fit a set of data points to the equation of a circle with center and radius
, the function to be minimized is
| (4.114) |
| (4.115) |
| (4.116) |
| (4.117) |
The same result can be obtained using the linear solvers discussed earlier.
For example, consider an algebraic representation of a circle:
Given a set of noisy points on the circle, the parameters are estimated as the least-squares solution of the homogeneous system (4.118), subject to a suitable normalization constraint to eliminate scale ambiguity.
As will be discussed in detail in later examples, normalizing the input data is computationally advantageous because the different unknowns are associated with data of very different magnitudes.
The algebraic solution is often used as an initial estimate for iterative methods that minimize a different metric.
Geometric fitting requires minimizing the distances
.
This requires a nonlinear least-squares solver, such as Levenberg–Marquardt, and computation of the derivatives of the cost function.
Another option is to parameterize the problem in a space other than Cartesian space.
Using the parametric form of the circle equation,
| (4.119) |
| (4.120) |
Paolo medici