# Least Squares Fit Equation

% Based on - A simple method for fitting of bounding rectangle to closed regions - D. Chaudhuri a , A. Samal b.% fit_rectangle - Function provides a least squares fit to the% given boundary points of an object of unknown shape.%% Inputs - Boundary elements that must be a Nx2 array. (atleast 3...
Platforms: Matlab

License: Shareware | Cost: $0.00 USD | Size: 10 KB | Download (18): Least squares fit of a rectangle to a given shape/boundary Download |

variogramfit performs a least squares fit of various theoretical variograms to an experimental, isotropic variogram. The user can choose between various bounded (e.g. spherical) and unbounded (e.g. exponential) models. A nugget variance can be modelled as well, but higher nested models are not...
Platforms: Matlab

License: Freeware | Size: 20.48 KB | Download (20): variogramfit Download |

Among the considerations in the use of analysis of regression, outliers or bad values can seriously disturb the least-squares fit. They falls far from the line implied by the rest of the data. If these points are really outliers, then the estimate of the intercept may be incorrect and the...
Platforms: Matlab

License: Shareware | Cost: $0.00 USD | Size: 10 KB | Download (20): regout 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::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 (87): Statistics::GaussHelmert Download |

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 |

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 |

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 |

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 |

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 |

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::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 |

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 (18): weighted total least squares for mutually correlated coordinates 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 |

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 |

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 |

The function computes parameters a, b, and c of the weighted orthogonal least squares fit of line ax+by+c=0 to a set of 2D points with coordinates given by x and y and weights w.n=100;x=1:n;y=2.5*x + (5+300./x).*randn(1,n);plot(x,y,'.k')hold onw=1:n;[a b c] = wols(x,y,w);plot([0,n],[-c/b,-c/b -...
Platforms: Matlab

License: Shareware | Cost: $0.00 USD | Size: 20.48 KB | Download (20): Weighted Orthogonal Least Squares 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 |