QuadraticRegression_RANSAC


Computes quadratic regression of given point set using RANSAC.

Syntax

C++
C#
Python
 
def QuadraticRegression_RANSAC(
	inYValues: list[float],
	/,
	*,
	inXValues: list[float] | None = None,
	inMaxOutlierCount: int | None = None,
	inMaxInlierDistance: float = 0,
	inIterationCount: int | None = None
)
-> (
	outQuadraticFunction: QuadraticFunction,
	outEstimatedValues: list[float],
	outResiduals: list[float]
)

Parameters

Name Type Range Default Description
Input value inYValues list[float] Sequence of ordinates
Input value inXValues list[float] | None None Sequence of abscissae, or {0, 1, 2, ...} by default
Input value inMaxOutlierCount int | None 0 - None Determines how many outlier points can be present to end the search
Input value inMaxInlierDistance float 0.0 - 0 Distance from a parabola for point to be considered an inlier
Input value inIterationCount int | None 1 - None Number of iterations; Auto means that all point triples will be used
Output value outQuadraticFunction QuadraticFunction Quadratic function approximating the given point set
Output value outEstimatedValues list[float] The result of application of the computed function to the X values
Output value outResiduals list[float] Difference between an input Y value and the corresponding estimated value