BestLine

NI Vision for LabWindows/CVI Function

BestLine

Describes a line that best fits a set of points.

Elements

Name

Type

Description

start PointFloat The coordinate location of the start of the line.
end PointFloat The coordinate location of the end of the line.
equation LineEquation Defines the three coefficients of the equation of the best fit line.
valid int This element is TRUE if the function achieved the minimum score within the number of allowed refinement iterations and FALSE if the function did not achieve the minimum score.
error double Represents the least square error of the fitted line to the entire set of points.
pointsUsed int* An array of the indexes for the points array indicating which points the function used to fit the line.
numPointsUsed int The number of points the function used to fit the line.