Skip to main content

LineRegressionFit

IsAscend310B​

函数功能​

判断是否使用Atlas 200I/500 A2 推理产品。

函数原型​

static bool DeviceManager::IsAscend310B();

参数说明​

参数名输入/输出说明
device输入要使用的设备。

返回参数说明​

数据结构说明
bool判断是否使用Atlas 200I/500 A2 推理产品。

父主题: DeviceManager

GetSocName​

函数功能​

查询当前运行环境的芯片版本。

函数原型​

static std::string GetSocName();

返回参数说明​

数据结构说明
string返回芯片版本信息。
- 对于Atlas 200I/500 A2 推理产品,返回“310B”。

父主题: DeviceManager

类说明​

线性拟合类。

父主题: 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

在线提单