You are here: Start » AVL.NET » 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 ( float[] inYValues, float[] inXValues, int inSeedSubsetSize, int? inEvalSubsetSize, out AvlNet.LinearFunction outLinearFunction, out float[] outEstimatedValues, out float[] outResiduals, out float[] outYInliers, out float[] outXInliers, out float outLTError )
Parameters
Name | Type | Range | Default | Description | |
---|---|---|---|---|---|
![]() | inYValues | float[] | Sequence of ordinates. | ||
![]() | inXValues | float[] | Sequence of abscissae, or {0, 1, 2, ...} by default. Default value: atl::NIL, or null. | ||
![]() | inSeedSubsetSize | int | <2, 10> | 3 | Number of points in one combination for getting a sample line. Default value: 3. |
![]() | inEvalSubsetSize | int? | <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, or null. | |
![]() | outLinearFunction | AvlNet.LinearFunction | Linear function approximating the given point set. | ||
![]() | outEstimatedValues | float[] | The result of application of the computed function to the X values. | ||
![]() | outResiduals | float[] | Difference between an input Y value and the corresponding estimated value. | ||
![]() | outYInliers | float[] | Coordinate of the inlying points of the best LTE line. | ||
![]() | outXInliers | float[] | Coordinate of the inlying points of the best LTE line. | ||
![]() | outLTError | float | The Least Trimmed Error. |
Errors
Error type | Description |
---|---|
DomainError | Inconsistent size of arrays in LinearRegression_LTE. |
DomainError | Empty array of points in LinearRegression_LTE. |
See also
- LinearRegression_LTE(float[], int, AvlNet.LinearFunction, float[], float[], float[], float[], float)
- LinearRegression_LTE(float[], int, AvlNet.LinearFunction, float[], float[], float[], float[], float, int)
- LinearRegression_LTE(float[], float[], int, int?, AvlNet.LinearFunction, float[], float[], float[], float[], float, int)
- Class Reference
- AVL Class