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

7 次查看(过去 30 天)
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