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/zxAlgRegressPoly.h

32 lines
578 B
C++

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