CalcWorldHub
Free online calculator · no signup

Damped Gauss Newton residual step calculator

Compute one regularized two-parameter least-squares correction from residuals and their Jacobian.

4,000 tools
Damped Gauss Newton residual step calculator — Jacobian row-major, Current residuals, Damping parameter and calculation method
Damped Gauss Newton residual step calculator: inputs and calculation method.

How to use this calculator

Compute one regularized two-parameter least-squares correction from residuals and their Jacobian.

  1. Enter Jacobian row-major, Current residuals, Damping parameter. Match the units shown beside each field and review the result together with the assumptions below.
  2. Read the worked example below to check the expected input format and result.
  3. Compare another scenario by changing one input at a time. Use Reset to return to the starting values.
Calculation guide

Damped Gauss Newton residual step explained

Compute one regularized two-parameter least-squares correction from residuals and their Jacobian.

First parameter increment-0.3744parameter units
First parameter increment: -0.374449 parameter units in the worked scenario.

How the calculation works

(JᵀJ+μI)p=−Jᵀr.

Residuals are defined as model minus observation. The returned increment is added to the current parameters; the reduction is predicted by the linearized residual model.

Set up the calculation

jacobian — Jacobian row-major
Two columns, one row per residual. Use comma-separated values in the stated order.
residual — Current residuals
Residuals matching Jacobian rows. Use comma-separated values in the stated order.
damping — Damping parameter
Nonnegative diagonal regularization added to J transpose J.

Limits of this model

Only a local linear model is used; evaluate the original nonlinear residuals before accepting a step. Parameters should be scaled consistently.

Check this example

Jacobian row-major = [1, 0, 1, 1, 1, 2]; Current residuals = [1, -1, 0.5]; Damping parameter = 0.1.

  • First parameter increment: -0.374449 parameter units
  • Second parameter increment: 0.220264 parameter units
  • Linearized squared residual reduction: 0.206098 residual squared

The three residuals 1, −1 and 0.5 with damping 0.1 produce a finite correction even when nonlinear fitting has not converged.

Reading the outputs

Both parameter increments and the predicted reduction in squared residual norm are returned.

Frequently asked questions

Do I add or subtract the increment?

Add it; the negative gradient sign is included.

Does positive predicted reduction guarantee improvement?

No. The nonlinear function may depart from its local linearization.

Why add damping?

It limits poorly determined directions and can regularize rank-deficient Jacobians.

How do I use the Damped Gauss Newton residual step calculator?

Enter Jacobian row-major, Current residuals, Damping parameter. Match the units shown beside each field and review the result together with the assumptions below.

What is a worked example of Damped Gauss Newton residual step?

Jacobian row-major = [1, 0, 1, 1, 1, 2]; Current residuals = [1, -1, 0.5]; Damping parameter = 0.1. First parameter increment: -0.374449 parameter units Second parameter increment: 0.220264 parameter units Linearized squared residual reduction: 0.206098 residual squared The three residuals 1, −1 and 0.5 with damping 0.1 produce a finite correction even when nonlinear fitting has not converged.