You are here:
Start »
AVL.NET »
AVL.LinearRegression_M Method
AVL.LinearRegression_M Method
Computes linear regression of given point set using selected M-estimator for outlier suppression.
| Namespace: | AvlNet |
| Assembly: | AVL.NET.dll |
Syntax
public static void LinearRegression_M(
float[] inYValues,
float[] inXValues,
AvlNet.MEstimator inOutlierSuppression,
float inClippingFactor,
int inIterationCount,
AvlNet.LinearFunction? inInitialLinearFunction,
out AvlNet.LinearFunction outLinearFunction,
out float[] outEstimatedValues,
out float[] outResiduals
)
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. |
 | inOutlierSuppression | AvlNet.MEstimator | | | |
 | inClippingFactor | float | <0.675f, 6.0f> | 2.5f | Multitude of standard deviation within which points are considered inliers. Default value: 2.5f. |
 | inIterationCount | int | <0, INF> | 5 | Number of iterations of outlier suppressing algorithm. Default value: 5. |
 | inInitialLinearFunction | AvlNet.LinearFunction? | | | Initial approximation of the output linear function (if available). 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. |
Errors
| Error type |
Description |
| DomainError |
Inconsistent size of arrays in LinearRegression_M. |
See also