Fitting success estimator from lsqcurvefit.m

1 visualización (últimos 30 días)
Chris L'Esperance
Chris L'Esperance el 19 de Oct. de 2020
Editada: Chris L'Esperance el 19 de Oct. de 2020
lsqcurvefit.m is attractive relative to nlinfit.m because of its support for ranges associated with the initial conditions / parameter estimates. nlinfit.m has a nice feature which is the output of a fitting success estimator which is the variance of the error term - the MSE.
The question is how can one programmatically collect or compute an MSE-like, goodness-of-fit estimator from the lsqcurvefit.m call? How can one know whether the fit operation failed, or converged on reasonable coefficient estimates in a programmatic sense?
Note that we are collecting all possible outputs produced by the lsqcurvefit.m function call: X, RESNORM, RESIDUAL, EXITFLAG, OUTPUT, LAMBDA, JACOBIAN
Note also that a contributor has suggested that certain outputs of the lsqcurvefit.m can be used as follows:
conf = nlparci(X, RESIDUAL, 'jacobian', JACOBIAN)

Respuestas (0)

Categorías

Más información sobre Get Started with Curve Fitting Toolbox en Help Center y File Exchange.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by