You are here: Start » AVL.NET » Function Reference » Data Classification » Regression Analysis » AVL.LinearRegression_LTE

AVL.LinearRegression_LTE

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

Namespace:AvlNet
Assembly:AVL.NET.dll

Syntax

C++
C#
 
public static void LinearRegression_LTE
(
	IList<float> inYValues,
	NullableRef<IList<float>> inXValues,
	int inSeedSubsetSize,
	int? inEvalSubsetSize,
	out AvlNet.LinearFunction outLinearFunction,
	IList<float> outEstimatedValues,
	IList<float> outResiduals,
	IList<float> outYInliers,
	IList<float> outXInliers,
	out float outLTError
)

Parameters

Name Type Range Default Description
inYValuesSystem.Collections.Generic.IList<float>Sequence of ordinates.
inXValuesAvlNet.NullableRef<System.Collections.Generic.IList<float>>Sequence of abscissae, or {0, 1, 2, ...} by default. Default value: atl::NIL.
inSeedSubsetSizeint<2, 10>3Number of points in one combination for getting a sample line. Default value: 3.
inEvalSubsetSizeint?<3, INF>Number of closest points used for evaluation of a sample line, or Auto if seed points are to be used. Default value: atl::NIL.
outLinearFunctionAvlNet.LinearFunctionLinear function approximating the given point set.
outEstimatedValuesSystem.Collections.Generic.IList<float>The result of application of the computed function to the X values.
outResidualsSystem.Collections.Generic.IList<float>Difference between an input Y value and the corresponding estimated value.
outYInliersSystem.Collections.Generic.IList<float>Coordinate of the inlying points of the best LTE line.
outXInliersSystem.Collections.Generic.IList<float>Coordinate of the inlying points of the best LTE line.
outLTErrorfloatThe Least Trimmed Error.

Errors

List of possible exceptions:

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

Function Overrides

See also