nls.lm的停止条件

时间:2018-08-08 17:08:53

标签: r curve-fitting data-fitting

请让我问一下有关nls.lm精加工条件的控制。

下面您可以看到nls.lm在尝试拟合我的数据时显示的日志。由于参数的目标值为{0,0.05,0.5,0},如果我希望函数在迭代29、30或31停止时,您是否知道应该为ptol或ftol设置的值?

谢谢。

It.   23, RSS = 3.90984e-07, Par. =  0.000336657  0.0496077   0.499512   0.400874 
It.   24, RSS = 2.75825e-08, Par. =  0.000167468  0.0497082   0.500001   0.200901 
It.   25, RSS = 1.85953e-09, Par. =  8.30194e-05  0.0497505   0.500002  0.0996384 
It.   26, RSS = 1.45254e-10, Par. =  3.99165e-05  0.0497721   0.500003  0.0479206 
It.   27, RSS = 1.37006e-11, Par. =  1.68307e-05  0.0497836   0.500003  0.0202179 
It.   28, RSS = 7.29574e-13, Par. =  4.00511e-06    0.04979   0.500002  0.00481911 
It.   29, RSS = 1.54053e-15, Par. =  9.06664e-08  0.0497919        0.5  0.000110152 
It.   30, RSS = 8.29473e-18, Par. =  1.48169e-08  0.0497919        0.5  1.77622e-05 
It.   31, RSS = 6.28718e-18, Par. =  1.31978e-08  0.0497919        0.5  1.58192e-05 
It.   32, RSS = 5.19729e-18, Par. =  1.20234e-08   0.049792        0.5  1.44384e-05 
It.   33, RSS = 4.26672e-18, Par. =  1.0823e-08   0.049792        0.5  1.29703e-05 

0 个答案:

没有答案