# Least Squares Examples

OLS - Orthogonal Least Squares: Proposed by T. Blumensath, M. E. DaviesStOLS - Stagewise OLS: Combining StOMP ideas with OLSROLS - Regularized OLS: Combining ROMP ideas with OLS
Platforms: Matlab

License: Freeware | Size: 10 KB | Download (21): Orthogonal Least Squares Algorithms for Sparse Signal Reconstruction Download |

We present a Matlab toolbox which can solve basic problems related to the Total Least Squares (TLS) method in the modeling. By illustrative examples we show how to use the TLS method for solution of:- linear regression model- nonlinear regression model- fitting data in 3D space- identification of...
Platforms: Matlab

License: Shareware | Cost: $0.00 USD | Size: 10 KB | Download (18): Total Least Squares Method Download |

Constructs discrete least-squares rational approximations to data using the full-Newton algorithm for solving separable non-linear least-squares problems that was developed in:Carlos F. Borges, A Full-Newton Approach to Separable Nonlinear Least Squares Problems and its Application to Discrete...
Platforms: Matlab

License: Shareware | Cost: $0.00 USD | Size: 10 KB | Download (18): Discrete Least-Squares Rational Approximation Download |

Like the finite difference method, the Taylor Series Least Squares method can be used to estimate derivatives. The TLS technique can be used to estimate derivatives from scattered or unstructured data. The Hermite Taylor Series Least Squares technique augments the TLS approach with information...
Platforms: Matlab

License: Shareware | Cost: $0.00 USD | Size: 10 KB | Download (18): Constrained Hermite Taylor Series Least Squares Download |

Statistics::LineFit module least squares line fit, weighted or unweighted. SYNOPSIS use Statistics::LineFit; $lineFit = Statistics::LineFit->new(); $lineFit->setData (@xValues, @yValues) or die "Invalid data"; ($intercept, $slope) = $lineFit->coefficients(); defined $intercept or die...
Platforms: *nix

License: Freeware | Size: 24.58 KB | Download (100): Statistics::LineFit Download |

Statistics::OLS is a Perl module to perform ordinary least squares and associated statistics. SYNOPSIS use Statistics::OLS; my $ls = Statistics::OLS->new(); $ls->setData (@xydataset) or die( $ls->error() ); $ls->setData (@xdataset, @ydataset); $ls->regress(); my ($intercept, $slope)...
Platforms: *nix

License: Freeware | Size: 8.19 KB | Download (79): Statistics::OLS Download |

Statistics::GaussHelmert is a general weighted least squares estimation module. SYNOPSIS use Statistics::GaussHelmert; # create an empty model my $estimation = new Statistics::GaussHelmert; # setup the model given observations $y, covariance matrices # $Sigma_yy, an initial guess $b0...
Platforms: *nix

License: Freeware | Size: 13.31 KB | Download (88): Statistics::GaussHelmert Download |

This package contains a set of tools that allows to deform in real-time points and images using the Moving Least Squares algorithms. This is a fast technique to get good image deformations without using the computational expansive techniques provided by the thin-plates splines algorithms. The...
Platforms: Matlab

License: Shareware | Cost: $0.00 USD | Size: 1.13 MB | Download (19): Moving Least Squares Download |

The problem of fitting a straight line to data with uncertainties in both coordinates is solved using a weighted total least-squares algorithm. The parameters are transformed from the usual slope/y-axis intersection pair to slope angle and distance to the origin. The advantages of this are that...
Platforms: Matlab

License: Shareware | Cost: $0.00 USD | Size: 10 KB | Download (19): weighted total least squares straight line fit Download |

The problem of fitting a straight line to data with uncertainties in both coordinates is solved using a weighted total least-squares algorithm. The parameters are transformed from the usual slope/y-axis intersection pair to slope angle and distance to the origin. The advantages of this are that...
Platforms: Matlab

License: Shareware | Cost: $0.00 USD | Size: 10 KB | Download (18): weighted total least squares for mutually correlated coordinates Download |

Very limited application of least squares. It gives you the plotted curves of original and plotted data with the equation in polynomial form. you can also evaluate that polynomial at different points for prediction.note:1.it would be best viewed on 1024x768.2. if you copy and paste data in data...
Platforms: Matlab

License: Shareware | Cost: $0.00 USD | Size: 163.84 KB | Download (19): Least Squares Curve Fitting Download |

ORTHLLS2D returns the Orthogonal Linear Least Squares estimate for parameters of line a x + b y + c = 0function f = OrthLLS2D(x, y)Inputs x and y must be real vectors of equal size.Output f is the real vector [a b c] where a, b and c are the estimated parameters of the linear equation.Since a...
Platforms: Matlab

License: Shareware | Cost: $0.00 USD | Size: 10 KB | Download (18): Analytical solution for Orthogonal Linear Least Squares in two dimensions Download |

This function calculates the minimum-norm solution of the least squares problem A*X = B. Where A is low-rank matrix. The function LSMIN is faster then the matlab alternative X = pinv(A)*B. Uses the LAPACK functions (S,C,D,Z)EGLSS or (S,C,D,Z)EGLSD.
Platforms: Matlab

License: Shareware | Cost: $0.00 USD | Size: 10 KB | Download (18): Least squares with minimum-norm solution Download |

Demonstration of least squares data fitting using both inverse and backslash operators.This example was developed for use in teaching modeling, simulation, and optimization in graduate engineering courses. A corresponding video is available at:
Platforms: Matlab

License: Shareware | Cost: $0.00 USD | Size: 10 KB | Download (18): Least Squares Data Fitting in MATLAB Download |

POLYFIT_ROOTS Least-squares polynomial fit to data.[R,K] = POLYFIT_ROOTS(X, Y, N, TOL) finds the roots R and constant K so that the polynomial P(s) = K*(s-R(1))*(s-R(2))* ... *(s-R(N)) is the best least-squares fit to the data Y at points X.Argument TOL bounds the accuracy of the fit, and if...
Platforms: Matlab

License: Shareware | Cost: $0.00 USD | Size: 81.92 KB | Download (18): polyfit_roots Download |

**Released:**August 25, 2012 | Added: August 25, 2012 | Visits: 352

DMFitter ActiveX control allows you to add sophisticated regression analysis tools to your software in a few lines of code. Features include: both linear and nonlinear (Levenberg-Marquardt) least squares curve fitting algorithms, arbitrary user models (defined analytically or by string...
Platforms: Windows

License: Freeware | Size: 368.64 KB | Download (28): DMFitter ActiveX control Download |

Often, measured data is comprised of N sampled values of z, evaluated at N locations (x,y). With this function, you can calculate the coefficients of the best-fit x,y polynomial using a linear least squares approximation.You can use this function if you have a set of N data triplets x,y,z, and...
Platforms: Matlab

License: Shareware | Cost: $0.00 USD | Size: 10 KB | Download (20): 3D Least squares polynomial fit in x and y Download |

The function The LMFnlsq.m serves for finding optimal solution of an overdetermined system of nonlinear equations in the least-squares sense. The standard Levenberg- Marquardt algorithm was modified by Fletcher and coded in FORTRAN many years ago (see the Reference). This version of LMFnlsq is...
Platforms: Matlab

License: Freeware | Size: 870.4 KB | Download (21): LMFnlsq - Solution of nonlinear least squares Download |

For a system having multiple inputs x and outputs y, the partial coherence is the coherence computed between any individual input and the output when the effect of all other inputs is removed from the output by a linear least squares prediction. This coherence obeys the usual inequality, and will...
Platforms: Matlab

License: Freeware | Size: 10 KB | Download (20): Multiple Coherence Function Download |

M-files for unimodality (or monotonically) constrained least squares regression.
Platforms: Matlab

License: Shareware | Cost: $0.00 USD | Size: 10 KB | Download (18): Unimodal regression Download |