JmatrixLMA: Calculate a Jacobian Matrix

View source: R/fitConic.R

JmatrixLMAR Documentation

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)

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.

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

Author(s)

Carl Witthoft <carl@witthoft.com>

References

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


fitConic documentation built on Aug. 29, 2023, 1:12 a.m.