what does fitoptions 'Method' = 'None' mean?

조회 수: 6 (최근 30일)
David Rosin
David Rosin 2017년 7월 14일
답변: David Rosin 2017년 7월 14일
I just looked up the defaults for fitoptions. For 'Method' the default appears to be 'None'.
>> fitoptions
ans =
Normalize: 'off'
Exclude: [1x0 double]
Weights: [1x0 double]
Method: 'None'
But what does that mean? It has to use SOMETHING to determine whether it has found the best fit. I can't seem to find out what, though. I'm very curious about this now.

채택된 답변

David Rosin
David Rosin 2017년 7월 14일
Alright! This is it:
Normalize: 'off'
Exclude: []
Weights: []
Method: 'NonlinearLeastSquares'
Robust: 'Off'
StartPoint: [1×0 double]
Lower: [1×0 double]
Upper: [1×0 double]
Algorithm: 'Trust-Region'
DiffMinChange: 1.0000e-08
DiffMaxChange: 0.1000
Display: 'Notify'
MaxFunEvals: 600
MaxIter: 400
TolFun: 1.0000e-06
TolX: 1.0000e-06
So as it turns out, it's a nonlinear least-squares approach with the trust region algorithm. The options-object seems to be always initialized like this. After that, the user-input is checked for an options-arguments to overwrite/edit it with.
Thanks again for pointing me in the right direction!

추가 답변 (1개)

the cyclist
the cyclist 2017년 7월 14일
편집: the cyclist 2017년 7월 14일
I expected the documentation to be a little more explicit about how the fitting functions handle things when Method is 'None', but it doesn't seem to be. I wonder if different functions have different default behavior.
I don't have the Curve Fitting Toolbox, so I can't explore. What I would do next would be to edit the actual function you are using to fit, search on the term 'None', and see if you can glean what it does with that. (Of course, be careful to not modify the function when in edit mode.)
  댓글 수: 1
David Rosin
David Rosin 2017년 7월 14일
Thank you for your reply.
That does sound like a good way to go about it. I'll look into that.

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Get 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