Fitting of parameters of function with discrete / integer argument
6 ビュー (過去 30 日間)
古いコメントを表示
Could somebody help me find the proper way to find the parameters for a function with integer arguments? I've conducted a series of measurement:
p_1 , p_2 , p_3 , (p_1+p_2)/2 , (p_2+p_3)/2 , (p_1+p_3)/2, (p_1+p_2+p_3)/3 , ....
(and so on, up to 10 parameters). Each measurement has its own measurement error and I would like to find the proper way to find parameters p_1 , p_2 , p_3, with standard deviation...
Thanks in advance!
0 件のコメント
回答 (1 件)
Adam Hug
2015 年 6 月 30 日
Based on your question, I am assuming that you are trying to fit a discrete curve. This is a hard problem in general but you can obtain a reasonable solution by using the "lsqnonlin" function in the Optimization Toolbox. More information can be found here:
In the context of least squares, residual is a more sensible metric than standard deviation. You could calculate the R^2 metric for the fit using the residual returned from "lsqnonlin".
0 件のコメント
参考
カテゴリ
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!