invert.lsq.Rd
Performs a least-squares inversion of an arbitrary radiative transfer model
(passed as an R function). The inversion attempts to minimize the sum of
residual least squares between modeled and observed spectra via the
Levenberg-Marquardt algorithm (nls.lm
function from the minpack.lm
package).
invert.lsq(observed, inits, model, lower = NULL, upper = NULL)
Vector of observations (e.g. a reflectance spectrum).
Vector of initial conditions for the parameters.
An R function that calls the RTM and returns the error to be minimized. Be sure to include constants here.
Lower bounds on parameters (default=NULL, which means -Inf).
Upper bounds on parameters (default=NULL, which means +Inf).