Analysis on Two Commonly Used Straight-Line Fitting Methods
In this paper,the two straight-line fitting methods are briefly analyzed,and the accuracy and algorithm complexity of the two methods for fitting straight lines are analyzed.The basic idea of both methods is based on the least squares method,but there are certain differences in the complexity of the calculation,and the two algorithms are fitted on the Matlab platform and the corresponding results are analyzed.At the same time,the part of the fitting codes is also given as a reference.