Back to Adaptive Vision Library website
You are here: Start » Function Reference » Statistics » LinearRegression_RANSAC
LinearRegression_RANSAC
This is Filter Equivalent. This function may be present in generated code, but should not be used in hand-written code.
Computes linear regression of given point set using RANSAC.
Syntax
void avl::LinearRegression_RANSAC ( const atl::Array<atl::real>& inYValues, const atl::Optional<atl::Array<atl::real> >& inXValues, atl::Optional<int> inMaxOutlierCount, atl::real inMaxInlierDistance, atl::Optional<int> inIterationCount, avl::LinearFunction& outLinearFunction, atl::Array<atl::real>& outEstimatedValues, atl::Array<atl::real>& outResiduals )
Parameters
| Name | Type | Default | Description | |
|---|---|---|---|---|
![]() |
inYValues | const Array<real>& | Sequence of ordinates | |
![]() |
inXValues | const Optional<Array<real> >& | NIL | Sequence of abscissae, or {0, 1, 2, ...} by default |
![]() |
inMaxOutlierCount | Optional<int> | NIL | Determines how many outlier points can be present to end the search |
![]() |
inMaxInlierDistance | real | Distance from a line for point to be considered an inlier | |
![]() |
inIterationCount | Optional<int> | NIL | Number of iterations; Auto means that all point pairs will be used |
![]() |
outLinearFunction | LinearFunction& | Linear function approximating the given point set | |
![]() |
outEstimatedValues | Array<real>& | The result of application of the computed function to the X values | |
![]() |
outResiduals | Array<real>& | Difference between an input Y value and the corresponding estimated value |
Errors
| Error type | Description |
|---|---|
| DomainError | Inconsistent size of arrays in LinearRegression_RANSAC. |


