You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
nmWATI/Include/iAlg/iAlgRegress/zxAlgRegressLinear.h

33 lines
597 B
C

#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;
};