Back to FabImage Library website
You are here: Start » Function Reference » Profile Features Deprecated » ProfileLinearRegression_Deprecated

ProfileLinearRegression_Deprecated
Header: | FIL.h |
---|---|
Namespace: | fil |
Returns coefficients of linear function (in form y = Ax + B) that illustrates the trend of profile. Uses ordinary least squares method.
Syntax
C++
void fil::ProfileLinearRegression_Deprecated ( const fil::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 |