General Least Squares Regression:Multi Dimensional Multivariable Least Squares Regression-matlab开发

时间:2021-05-30 23:25:11
【文件属性】:
文件名称:General Least Squares Regression:Multi Dimensional Multivariable Least Squares Regression-matlab开发
文件大小:3KB
文件格式:ZIP
更新时间:2021-05-30 23:25:11
matlab 代码手动推导出表达式 fm(x1,x2,x3,...,xk) 为(k+1) 维中的等距点,其中 m 是近似值 f 的阶数。 例子: x1=[6 7 8 5 3 2 1 2 5 8]; x2=[9 7 0 8 5 6 4 3 2 10]; y=[9 7 6 4 3 2 5 6 8 1]; mreg([x1;x2],y,1) 答案 = 5.542073-.2829251 * x2 + .2310048 * x1 mreg([x1;x2],y,2) 答案 = 3.797949-.6754073*x2-.2393447e-1*x2^2 +2.256645*x1+.8248780e-1*x1*x2 -.2478672*x1^2 mreg([x1;x2],y,3) 答案 = -24.62814+33.15517*x2-9.837215*x2^2+.8316257*x2^3 -17.31119*x1
【文件预览】:
mreg.zip

网友评论