The regression of a set of points to the equation of a circle (circular regression) can be obtained by minimizing either an algebraic or a geometric distance.
If one wishes to compute the linear regression of a set of data to the equation of a circle centered at with radius
, the function to be minimized is
| (4.101) |
| (4.102) |
| (4.103) |
| (4.104) |
The same result can be obtained using the linear solvers introduced earlier.
Consider, for example, an algebraic representation of a circle:
Given a list of noisy points belonging to the circumference, the parameters describing the circumference are obtained by solving the homogeneous constraint system (4.105).
As will be discussed in detail for subsequent problems, it is convenient, for purely computational reasons, to normalize the input data, since the different unknowns are associated with data having very different magnitudes.
The algebraic solution is often used as the initial solution for iterative techniques that minimize a different metric.
To perform geometric regression, it is necessary to minimize the distances
.
Minimizing this quantity requires a nonlinear least-squares solver, such as Levenberg–Marquardt, and computation of the derivatives of the cost function.
Finally, an alternative is to parameterize the problem in a space other than the Cartesian space.
Indeed, using the parametric form of the circle equation
| (4.106) |
| (4.107) |
Paolo medici