|
发表于 2012-10-23 12:25:01
|
显示全部楼层
二次拟合,误差太大了吧。以下是我拟合的结果,matlab不是很熟,不知有没有问题:
2次拟合
attach://61497.jpg
Warnings during fitting:
Equation is badly conditioned. Remove repeated data points
or try centering and scaling.
Linear model Poly2:
f(x) = p1*x^2 + p2*x + p3
Coefficients (with 95% confidence bounds):
p1 = 5.812e-005 (3.737e-005, 7.887e-005)
p2 = -16.84 (-26.68, -7.001)
p3 = 4.494e+005 (-5.418e+005, 1.441e+006)
Goodness of fit:
SSE: 1.439e+013
R-square: 0.8396
Adjusted R-square: 0.8166
RMSE: 1.014e+006
4次拟合
attach://61498.jpg
Warnings during fitting:
Equation is badly conditioned. Remove repeated data points
or try centering and scaling.
Linear model Poly4:
f(x) = p1*x^4 + p2*x^3 + p3*x^2 + p4*x + p5
Coefficients (with 95% confidence bounds):
p1 = 9.799e-016 (6.833e-016, 1.277e-015)
p2 = -7.786e-010 (-1.089e-009, -4.683e-010)
p3 = 0.0001964 (9.357e-005, 0.0002992)
p4 = -13.64 (-25.15, -2.129)
p5 = 8.412e+004 (-1.842e+005, 3.525e+005)
Goodness of fit:
SSE: 6.671e+011
R-square: 0.9926
Adjusted R-square: 0.9901
RMSE: 2.358e+005
5次拟合
attach://61499.jpg
Warnings during fitting:
Equation is badly conditioned. Remove repeated data points
or try centering and scaling.
Linear model Poly5:
f(x) = p1*x^5 + p2*x^4 + p3*x^3 + p4*x^2 + p5*x + p6
Coefficients (with 95% confidence bounds):
p1 = 3.499e-021 (2.746e-021, 4.251e-021)
p2 = -3.566e-015 (-4.548e-015, -2.583e-015)
p3 = 1.275e-009 (8.221e-010, 1.728e-009)
p4 = -0.0001791 (-0.0002665, -9.167e-005)
p5 = 9.313 (3.117, 15.51)
p6 = -2.667e+004 (-1.172e+005, 6.384e+004)
Goodness of fit:
SSE: 6.343e+010
R-square: 0.9993
Adjusted R-square: 0.999
RMSE: 7.593e+004
|
本帖子中包含更多资源
您需要 登录 才可以下载或查看,没有帐号?注册
x
|