# FitLine Tool

The FitLine tool lets you fit a straight line to a set of points. The tool returns the Line that fits the points you supply with the smallest RMS error (the square root of the sum of the squares of the distances from the line to each point).

You can specify that the FitLine tool to ignore some of the points you provide. The tool attempts to fit a line using every possible combination of the points you supply after discarding the number of points you allow the tool to ignore. To tool discards outlying points to fit the best possible line with the remaining points.