#pragma once #include "zxAlgRegress.h" #include "zxAlgRegressMultiLinear.h" //多项式拟合 class I_ALGREGRESS_EXPORT zxAlgRegressPoly :public zxAlgRegress { public: zxAlgRegressPoly(void); ~zxAlgRegressPoly(void); virtual double getValue(VecDouble& vMatrixX); bool setFiltering(); bool cal(); bool setTransformation(); bool setReciprocalTransformation(); // 组织表达式 virtual QString getExpStr(); public: void setDegree(uint nDegree); //多项式的阶次 private: uint m_nDegree; zxAlgRegressMultiLinear* m_pLinearRegress; };