Learn R Programming

PEIP (version 1.7)

lmarq: Lev-Marquardt Inversion

Description

Use the Levenberg-Marquardt algorithm to minimize f(p)=sum(F_i(p)^2)

Usage

lmarq(afun, ajac, p0, tol, maxiter)

Arguments

afun
name of the function F(x)
ajac
name of the Jacobian function J(x)
p0
initial guess
tol
stopping tolerance
maxiter
maximum number of iterations allowed

Value

  • pstarbest solution found.
  • iterIteration count.