You are here: Start » AVL.NET » AVL.LinearRegression_M

AVL.LinearRegression_M

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

Namespace:AvlNet
Assembly:AVL.NET.dll

Syntax

C++
C#
 
public static void LinearRegression_M
(
	float[] inYValues,
	AvlNet.MEstimator inOutlierSuppression,
	float inClippingFactor,
	int inIterationCount,
	out AvlNet.LinearFunction outLinearFunction,
	out float[] outEstimatedValues,
	out float[] outResiduals
)

Parameters

Name Type Range Default Description
inYValuesfloat[]Sequence of ordinates.
inOutlierSuppressionAvlNet.MEstimator
inClippingFactorfloat<0.675f, 6.0f>2.5fMultitude of standard deviation within which points are considered inliers. Default value: 2.5f.
inIterationCountint<0, INF>5Number of iterations of outlier suppressing algorithm. Default value: 5.
outLinearFunctionAvlNet.LinearFunctionLinear function approximating the given point set.
outEstimatedValuesfloat[]The result of application of the computed function to the X values.
outResidualsfloat[]Difference between an input Y value and the corresponding estimated value.

Errors

Error type Description
DomainError Inconsistent size of arrays in LinearRegression_M.

See also