SetAlphaAndBeta
函数功能
计算斜率和截距。
函数原型
1 | void LineRegressionFit::SetAlphaAndBeta(const std::vector<float> &xVec, const std::vector<float> &yVec); |
参数说明
参数名 |
输入/输出 |
说明 |
---|---|---|
xVec |
输入 |
横坐标数组。 |
yVec |
输入 |
纵坐标数组。 |
父主题: LineRegressionFit
计算斜率和截距。
1 | void LineRegressionFit::SetAlphaAndBeta(const std::vector<float> &xVec, const std::vector<float> &yVec); |
参数名 |
输入/输出 |
说明 |
---|---|---|
xVec |
输入 |
横坐标数组。 |
yVec |
输入 |
纵坐标数组。 |