#pragma once #include "zxAlgRegress.h" //线性回归 class I_ALGREGRESS_EXPORT zxAlgRegressLinear :public zxAlgRegress { public: zxAlgRegressLinear(); ~zxAlgRegressLinear(); virtual double getValue(VecDouble& vMatrixX); bool setFiltering(); bool SimpleCalcalute(); bool cal(); bool setTransformation(); bool setReciprocalTransformation(); // 组织表达式 virtual QString getExpStr(); double getExpK(); double getExpB(); // 慎用,在外部修改截距 (等时试井) void changeExpB(double d) { m_dB = d; } private: double m_dK; double m_dB; };