llsq


llsq, a C code which solves the linear least squares (LLS) problem of finding the formula of a straight line y=a*x or y=a*x+b which minimizes the root-mean-square (RMS) error to a set of N data points.

Licensing:

The information on this web page is distributed under the MIT license.

Languages:

llsq is available in a C version and a C++ version and a Fortran90 version and a MATLAB version and an Octave version and a Python version.

Related Data and Programs:

llsq_test

minpack, a C code which solves systems of nonlinear equations, or the least squares minimization of the residual of a set of linear or nonlinear equations.

qr_solve, a C code which computes the least squares solution of a linear system A*x=b.

test_approx, a C code which defines test problems for approximation, provided as a set of (x,y) data.

test_lls, a C code which implements linear least squares test problems of the form A*x=b.

Reference:

  1. David Kahaner, Cleve Moler, Steven Nash,
    Numerical Methods and Software,
    Prentice Hall, 1989,
    ISBN: 0-13-627258-4,
    LC: TA345.K34.

Source Code:


Last revised on 09 July 2020.