nonlinear curve-fitting: weight vector

1 回表示 (過去 30 日間)
anna
anna 2012 年 2 月 21 日
編集済み: Tom Lane 2018 年 1 月 22 日
hi I am working on a multiobjective procedure using the 'lsqcurvefit' (Levenberg-Marquardt algorithm): I would like to use a weight vector during risolution of the best fit in order to force the best fit function following the last inputs in a better way instead of the first ones. How can I?

採用された回答

Richard Willey
Richard Willey 2012 年 2 月 21 日
nlinfit in Statistics Toolbox
  1. Uses Levenberg-Marquardt under the hood
  2. Allows you to input a vector of weights
  2 件のコメント
Tom Lane
Tom Lane 2012 年 2 月 21 日
編集済み: Tom Lane 2018 年 1 月 22 日
The use of weights is actually not supported directly in nlinfit, but there is a demo about how to do that. You might use the same technique with lsqcurvefit if you prefer.
anna
anna 2012 年 2 月 22 日
Dear guys,
many many thanks for your reply.
It works perfectly!!!
I have modified my script by using the same technique reported in the last link for the “nlinfit”.

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeInterpolation についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by