Back to Adaptive Vision Library website

You are here: Start » Function Reference » Profile Features Deprecated » ProfileLinearRegression_Deprecated

ProfileLinearRegression_Deprecated


Header:AVL.h
Namespace:avl

Returns coefficients of linear function (in form y = Ax + B) that illustrates the trend of profile. Uses ordinary least squares method.

Syntax

C++
 
void avl::ProfileLinearRegression_Deprecated
(
	const avl::Profile& inProfile,
	float& outA,
	float& outB
)

Parameters

Name Type Default Description
inProfile const Profile& Input profile
outA float&
outB float&

Errors

List of possible exceptions:

Error type Description
DomainError inProfile is empty in ProfileLinearRegression