You are here: Start » AVL.NET » AVL.LinearRegression_LTE Method

AVL.LinearRegression_LTE Method

Computes linear regression of given point set using Least Trimmed Error algorithm.

Namespace:AvlNet
Assembly:AVL.NET.dll

Syntax

public static void LinearRegression_LTE(
	float[] inYValues,
	int inSeedSubsetSize,
	out AvlNet.LinearFunction outLinearFunction,
	out float[] outEstimatedValues,
	out float[] outResiduals,
	out float[] outYInliers,
	out float[] outXInliers,
	out float outLTError,
	out int diagIterationCount
)

Parameters

Name Type Range Default Description
inYValuesfloatSequence of ordinates.
inSeedSubsetSizeint<2, 10>3Number of points in one combination for getting a sample line. Default value: 3.
outLinearFunctionAvlNet.LinearFunctionLinear function approximating the given point set.
outEstimatedValuesfloatThe result of application of the computed function to the X values.
outResidualsfloatDifference between an input Y value and the corresponding estimated value.
outYInliersfloatCoordinate of the inlying points of the best LTE line.
outXInliersfloatCoordinate of the inlying points of the best LTE line.
outLTErrorfloatThe Least Trimmed Error.
diagIterationCountintNumber of combinations considered.

Errors

Error type Description
DomainError Inconsistent size of arrays in LinearRegression_LTE.
DomainError Empty array of points in LinearRegression_LTE.

See also