You are here: Start » FIL.NET » Function Reference » Data Classification » Regression Analysis » FIL.LinearRegression_TheilSen
Computes linear regression of given point set using TheilSen algorithm.
Namespace: | FilNet |
---|---|
Assembly: | FIL.NET.dll |
Syntax
C++
C#
public static void LinearRegression_TheilSen ( IList<float> inYValues, NullableRef<IList<float>> inXValues, FilNet.TheilSenVariant inVariant, out FilNet.LinearFunction outLinearFunction, IList<float> outEstimatedValues, IList<float> outResiduals )
Parameters
Name | Type | Range | Default | Description | |
---|---|---|---|---|---|
![]() | inYValues | System.Collections.Generic.IList<float> | Sequence of ordinates. | ||
![]() | inXValues | FilNet.NullableRef<System.Collections.Generic.IList<float>> | Sequence of abscissae, or {0, 1, 2, ...} by default. Default value: ftl::NIL. | ||
![]() | inVariant | FilNet.TheilSenVariant | Switches between Theil-Sen and Siegel methods. | ||
![]() | outLinearFunction | FilNet.LinearFunction | Linear function approximating the given point set. | ||
![]() | outEstimatedValues | System.Collections.Generic.IList<float> | The result of application of the computed function to the X values. | ||
![]() | outResiduals | System.Collections.Generic.IList<float> | Difference between an input Y value and the corresponding estimated value. |
Errors
List of possible exceptions:
Error type | Description |
---|---|
DomainError | Empty array of points in LinearRegression_TheilSen. |
DomainError | Inconsistent size of arrays in LinearRegression_TheilSen. |