如何在 Matlab 中获得高斯拟合曲线的标准差?
它不是fit
函数的输出。
代码:
[fy, god] = fit(xx, yy, 'gauss2');
输出:
>> fy
fy =
General model Gauss2:
fy(x) = a1*exp(-((x-b1)/c1)^2) + a2*exp(-((x-b2)/c2)^2)
Coefficients (with 95% confidence bounds):
a1 = -0.09287 (-0.09414, -0.0916)
b1 = 3805 (3805, 3806)
c1 = 20.9 (19.8, 22.01)
a2 = -0.3454 (-0.3497, -0.3411)
b2 = 3862 (3861, 3862)
c2 = 19.32 (18.82, 19.82)
>> god
god =
sse: 2.7037e-04
rsquare: 0.9995
dfe: 55
adjrsquare: 0.9994
rmse: 0.0022