Fitting success estimator from lsqcurvefit.m

1 回表示 (過去 30 日間)
Chris L'Esperance
Chris L'Esperance 2020 年 10 月 19 日
編集済み: Chris L'Esperance 2020 年 10 月 19 日
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)

回答 (0 件)

カテゴリ

Help Center および File ExchangeGet Started with Curve Fitting Toolbox についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by