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.
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
|
|
#include "zxAlgRegress.h"
|
|
|
|
|
|
|
|
|
|
class I_ALGREGRESS_EXPORT zxAlgRegressMultiLinear :public zxAlgRegress
|
|
|
|
|
{
|
|
|
|
|
public:
|
|
|
|
|
zxAlgRegressMultiLinear(void);
|
|
|
|
|
virtual ~zxAlgRegressMultiLinear(void);
|
|
|
|
|
public:
|
|
|
|
|
bool setFiltering();
|
|
|
|
|
bool SimpleCalcalute();
|
|
|
|
|
bool cal();
|
|
|
|
|
bool setTransformation();
|
|
|
|
|
bool setReciprocalTransformation();
|
|
|
|
|
// vMatrixX 按从低次向高次排列。
|
|
|
|
|
virtual double getValue(VecDouble& vMatrixX);
|
|
|
|
|
|
|
|
|
|
// 组织表达式
|
|
|
|
|
virtual QString getExpStr();
|
|
|
|
|
|
|
|
|
|
protected:
|
|
|
|
|
// 内部调用接口,与外部调用接口GetValue有区别。
|
|
|
|
|
// 如Y = x0 + x1 + b; 外部调用接口输入参数为 (x0 , x1),内部调用接口输入参数为(1,x0,x1),需要三个参数。
|
|
|
|
|
double insideGetValue(VecDouble vMatrixX);
|
|
|
|
|
|
|
|
|
|
protected:
|
|
|
|
|
|
|
|
|
|
VecDouble m_matrix_y;
|
|
|
|
|
VVecDouble m_matrix_x;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|