QuadraticRegression_M


Computes quadratic regression of given point set using selected M-estimator for outlier suppression.

Syntax

C++
C#
Python
 
def QuadraticRegression_M(
	inYValues: list[float],
	/,
	*,
	inXValues: list[float] | None = None,
	inOutlierSuppression: MEstimator = MEstimator.Huber,
	inClippingFactor: float = 2.5,
	inIterationCount: int = 5,
	inInitialQuadraticFunction: QuadraticFunction | None = None
)
-> (
	outQuadraticFunction: QuadraticFunction,
	outEstimatedValues: list[float],
	outResiduals: list[float],
	outYInliers: list[float],
	outXInliers: 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 inOutlierSuppression MEstimator MEstimator.Huber
Input value inClippingFactor float 0.675 - 6.0 2.5 Multitude of standard deviation within which points are considered inliers
Input value inIterationCount int 0 - 5 Number of iterations of outlier suppressing algorithm
Input value inInitialQuadraticFunction QuadraticFunction | None None Initial approximation of the output quadratic function (if available)
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
Output value outYInliers list[float] Coordinate of the inlying points of the best parabola
Output value outXInliers list[float] Coordinate of the inlying points of the best parabola