LineFit

Each of the following functions references a LineFit data structure as the first parameter.

Function Description

GetChi2(LineFit)

Returns the sum of the squares of the distances from the points to the line.

GetCol(LineFit, Index)

Returns the y-coordinate of the indexed point.

GetDistance(LineFit, Index)

Returns the distance between the indexed point and the line.

GetMaxDist(LineFit)

Returns the point that is farthest from the line.

GetMaxDistIndex(LineFit)

Returns the index of the point that is farthest from the line.

GetNPointUsed(LineFit)

Returns the number of points used to compute the line.

GetRow(LineFit, Index)

Returns the x-coordinate of the indexed point.