最小二乘法的多个曲线拟合算法源码 下边只列出一次的: BOOL CalculateLineKB(CFoldPointList *m_FoldList,double &k,double &b) { //最小二乘法直线拟合 //m_FoldList为关键点(x,y)的链表 //拟合直线方程(Y=kX+b) if(m_FoldList==NULL)return FALSE; long lCount=m_FoldList->GetCount(); if(lCount