LinearRegression_RANSAC
Computes linear regression of given point set using RANSAC.
Syntax
C++
C#
Python
def LinearRegression_RANSAC( inYValues: list[float], inMaxInlierDistance: float, /, *, inXValues: list[float] | None = None, inMaxOutlierCount: int | None = None, inIterationCount: int | None = None ) -> ( outLinearFunction: LinearFunction, outEstimatedValues: list[float], outResiduals: list[float] )
Parameters
| Name | Type | Default | Description | |
|---|---|---|---|---|
![]() |
inYValues | list[float] | Sequence of ordinates | |
![]() |
inXValues | list[float] | None | None | Sequence of abscissae, or {0, 1, 2, ...} by default |
![]() |
inMaxOutlierCount | int | None | None | Determines how many outlier points can be present to end the search |
![]() |
inMaxInlierDistance | float | Distance from a line for point to be considered an inlier | |
![]() |
inIterationCount | int | None | None | Number of iterations; Auto means that all point pairs will be used |
![]() |
outLinearFunction | LinearFunction | Linear function approximating the given point set | |
![]() |
outEstimatedValues | list[float] | The result of application of the computed function to the X values | |
![]() |
outResiduals | list[float] | Difference between an input Y value and the corresponding estimated value |


