How Do the "fittype" function works
6 ビュー (過去 30 日間)
古いコメントを表示
I am working on a project where I have got a piece of code where the fittype function has been used like this
ft = fittype( 'cconv(A.*exp(-x.*B), y,length(x))' , 'independent', {'x', 'y'}, 'dependent', 'z' );
where the circuler convolution is beeing done with two vectors A and B . My query is where the values of A and B comes from or how the values are beeing initialized .
2 件のコメント
Arun Badigannavar
2015 年 8 月 10 日
Please elaborate your question, A, B depends on vector you choose,
回答 (1 件)
Walter Roberson
2015 年 8 月 10 日
fittype() does not initialize A or B in your example. fittype() creates a model that includes an anonymous function that will name A and B as parameters. Usually the fit() function is then used to determine the parameters, so what you want to know is how it initializes the values.
The answer to that is described http://www.mathworks.com/help/curvefit/fit.html#input_argument_namevalue_startpoint
If no start points (the default value of an empty vector) are passed to the fit function, starting points for some library models are determined heuristically. For rational and Weibull models, and all custom nonlinear models, the toolbox selects default initial values for coefficients uniformly at random from the interval (0,1).
Yours is a custom nonlinear model.
参考
カテゴリ
Help Center および File Exchange で Linear and Nonlinear Regression についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!