Learn R Programming

fitConic (version 1.2.1)

JmatrixLMA: Calculate a Jacobian Matrix

Description

Calculate the Jacobian matrix with the original dataset and the current version of fitted data. This is not intended for external use. It is called from fitConic

Usage

JmatrixLMA(XY, parA, XYproj)

Value

Res

residuals based on the norm of XY - XYproj

J

matrix of values for each input data point corresponding to the terms in the general quadratic Ax^2 + Bxy + Cy^2 +Dx + Ey +F

Arguments

XY

The original input dataset

parA

The current set of ABCDEF quadratic equation coefficients.

XYproj

The current calculated dataset based on the latest iteration of the coefficient set.

Author

Carl Witthoft <carl@witthoft.com>

References

This is a copy of JmatrixLMA with some validation steps added.