多点最小二乘法面方程拟合计算.docVIP

  • 46
  • 0
  • 约7.88千字
  • 约 5页
  • 2016-10-15 发布于浙江
  • 举报
多点最小二乘法面方程拟合计算

平面方程拟合计算 平面方程的一般表达式为: , () 记: 则: 平面方程拟合: 对于一系列的n个点: 要用点拟合计算上述平面方程,则使: 最小。 要使得S最小,应满足: 即: 有, 或, 解上述线形方程组,得: 即: 其程序代码如下: #include stdafx.h #include math.h #include stdlib.h #include Windows.h #define MAX 10 void Inverse(double *matrix1[],double *matrix2[],int n,double d); double Determinant(double* matrix[],int n); double AlCo(double* matrix[],int jie,int row,int column); double Cofactor(double* matrix[],int jie,int row,int column); int _tmain(int argc, _TCHAR* argv[]) { ??? double array[12][3],Y[3]; ??? double A,B,C; ??? A = B = C = 0.0; ??? ZeroMemory(array,sizeof(array)); ???

文档评论(0)

1亿VIP精品文档

相关文档