This function is not intended for external use. It is called from fitConic
when iterating to find the best-fit hyperbola.
Residuals.hyperbola(XY, parG)
Figure of merit, the 'norm' of the difference between the input XY data and the output "XYproj" data generated.
Calculated dataset to be used in generating the Jacobian matrix for the next iteration of fitConic
The x,y dataset
The "G-parameter" set for the current iteration.
Carl Witthoft <carl@witthoft.com>
This is a slightly modified (and debugged) version of Residuals.hyperbola