跳到主要内容

~LineRegressionFit

类说明​

线性拟合类。

父主题: LineRegressionFit

LineRegressionFit​

函数功能​

类构造函数,创建线性拟合类对象。

函数原型​

LineRegressionFit();

父主题: LineRegressionFit

~LineRegressionFit​

函数功能​

LineRegressionFit类的默认析构函数。

函数原型​

~LineRegressionFit();

父主题: LineRegressionFit

LRFunction​

函数功能​

计算x横坐标值在拟合线性后斜率和截距条件下的纵坐标值。

函数原型​

double LRFunction(const float &x) const;

参数说明​

参数名输入/输出说明
x输入横坐标值。

父主题: LineRegressionFit

SetAlphaAndBeta​

函数功能​

计算斜率和截距。

函数原型​

void SetAlphaAndBeta(const std::vector<float> &xVec, const std::vector<float> &yVec);

参数说明​

参数名输入/输出说明
xVec输入横坐标数组。
yVec输入纵坐标数组。

父主题: LineRegressionFit

类说明​

numpy排序算法C++实现类。

父主题: NpySort

在线提单