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

AVL.LinearRegression_RANSAC

Computes linear regression of given point set using RANSAC.

Namespace:AvlNet
Assembly:AVL.NET.dll

Syntax

C++
C#
 
public static void LinearRegression_RANSAC
(
	IList<float> inYValues,
	float inMaxInlierDistance,
	out AvlNet.LinearFunction outLinearFunction,
	IList<float> outEstimatedValues,
	IList<float> outResiduals
)

Parameters

Name Type Range Default Description
inYValuesSystem.Collections.Generic.IList<float>Sequence of ordinates.
inMaxInlierDistancefloatDistance from a line for point to be considered an inlier.
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.

Errors

List of possible exceptions:

Error type Description
DomainError Inconsistent size of arrays in LinearRegression_RANSAC.

Function Overrides

See also