You are here: Start » AVL.NET » AVL.LinearRegression_RANSAC Method

AVL.LinearRegression_RANSAC Method

Computes linear regression of given point set using RANSAC.

Namespace:AvlNet
Assembly:AVL.NET.dll

Syntax

public static void LinearRegression_RANSAC(
	float[] inYValues,
	float inMaxInlierDistance,
	out AvlNet.LinearFunction outLinearFunction,
	out float[] outEstimatedValues,
	out float[] outResiduals
)

Parameters

Name Type Range Default Description
inYValuesfloatSequence of ordinates.
inMaxInlierDistancefloatDistance from a line for point to be considered an inlier.
outLinearFunctionAvlNet.LinearFunctionLinear function approximating the given point set.
outEstimatedValuesfloatThe result of application of the computed function to the X values.
outResidualsfloatDifference between an input Y value and the corresponding estimated value.

Errors

Error type Description
DomainError Inconsistent size of arrays in LinearRegression_RANSAC.

See also