Least Squares Fit Method
polyfitweighted2.m and polyval2.m---------polyfitweighted2.m: Find a least-squares fit of 2D data z(x,y) with an n th order polynomial, weighted by w(x,y).polyval2.m: Evaluate 2D polynomial produced by polyfitweighted2.m.Usage polyfitweighted2-----P = polyfitweighted2(X,Y,Z,N,W) finds the...
Platforms: Matlab
License: Shareware | Cost: $0.00 USD | Size: 20.48 KB | Download (43): 2D Weighted Polynomial Fitting and Evaluation Download |
This is a fast and non-iterative ellipse fit. Usage: A = EllipseDirectFit(XY)Input: XY(n,2) is the array of coordinates of n points x(i)=XY(i,1), y(i)=XY(i,2) Output: A = [a b c d e f]' is the vector of coefficients of the equation of the best fitting ellipse: ax^2 + bxy + cy^2 + dx + ey + f =...
Platforms: Matlab
License: Freeware | Size: 10 KB | Download (45): Ellipse Fit (Direct method) Download |
This is a robust and accurate circle fit. It works well even if datapoints are observed only within a small arc. This circle fit was proposed by V. Pratt in article "Direct least-squares fitting of algebraic surfaces", Computer Graphics, Vol. 21, pages 145-152 (1987). It is more stable than the...
Platforms: Matlab
License: Shareware | Cost: $0.00 USD | Size: 10 KB | Download (43): Circle Fit (Pratt method) Download |
Auto Gaussian & Gabor Surface fit---2 functions to fit a 2D Gaussian or 2D Gabor to a surface. The routines are automatic in the sense that they do not require the specification of starting guesses for the model parameters. This is done by evaluating the quality of fit (sum of squared error) for...
Platforms: Matlab
License: Shareware | Cost: $0.00 USD | Size: 10 KB | Download (43): Auto Gaussian & Gabor Surface Fit Download |
It needs a set of 3D points, equal radii constraints and orientation constraint to fit an ellipsoid into a 3D block object
Platforms: Matlab
License: Freeware | Size: 10 KB | Download (48): Ellipsoid fit Script Download |
How to fit a 2D Gaussian function to noisy data in Matlab? Or data with another number of dimensions and arbitrary fit function?It took me a while to find out how Matlab does this by the functions lsqcurvefit, fmincon or fminsearch. This project demonstrates how to use these functions to fit ND...
Platforms: Matlab
License: Freeware | Size: 30.72 KB | Download (54): Nonlinear fitting n-dimensional data with arbitrary functions Download |
Implementation of the well known Haralick Edge Detector.Here are the steps of the algorithm : (1) Fit a bi-cubic polynomial to a small neighborhood of each pixel (this step provides smoothing too). (2) Compute (analytically) the second and third directional derivatives in the direction of...
Platforms: Matlab
License: Shareware | Cost: $0.00 USD | Size: 184.32 KB | Download (39): Simple Edge Detection Using Classical Haralick Method Download |
Excel add-in with eleven powerful worksheet functions for 1, 2 and 3 variable lookup and interpolation. Interpolation modes include: closest-value, linear, piecewise parabolic or hyperbolic, cubic spline and polynomial up to 20th order. The functions can also handle tables containing missing and...
Platforms: Windows
License: Shareware | Cost: $20.00 USD | Size: 1.02 MB | Download (626): TriLookup Download |
CurveFitter program performs statistical regression analysis to estimate the values of parameters for linear, multivariate, polynomial, exponential and nonlinear functions. The regression analysis determines the values of the parameters that cause the function to best fit the observed data that...
Platforms: Windows, Other
License: Shareware | Cost: $15.00 USD | Size: 3.08 MB | Download (263): Regression Analysis - CurveFitter Download |
In this submission we present the code of the Replacement Method (RM) [1-4] and Enhanced Replacement Method (ERM)[5], that were proposed some time ago by our group. Both methods produce linear regression QSPR-QSAR models that are quite close the FS (full search) ones with much less computational...
Platforms: Matlab
License: Freeware | Size: 215.04 KB | Download (47): QSAR/QSPR Search Algorithms Toolbox Download |
rilt Regularized Inverse Laplace Transform [g,yfit,cfg] = rilt(t,y,s,g0,alpha) Array g(s) is the Inverse Laplace Transform of the array y(t), calculated by a regularized least squares method.This script is an emulation of S. Provencher CONTIN program, written in Fortran. See...
Platforms: Matlab
License: Freeware | Size: 10 KB | Download (48): rilt Download |
Returns the Haussdorf fractal dimension D of an object represented by the binary image I. Nonzero pixels belong to an object and 0 pixels constitute the background.Algorithm:1 - Pad the image with background pixels so that its dimensions are a power of 2.2 - Set the box size 'e' to the size of...
Platforms: Matlab
License: Shareware | Cost: $0.00 USD | Size: 10 KB | Download (45): Hausdorff (Box-Counting) Fractal Dimension Download |
Inputs: 1. a 1 dimensional array of drug concentrations 2. the corresponding m x n array of responses Algorithm: generate a set of initial coefficients including the Hill coefficient fit the data to the 4 parameter dose-response curve using nonlinear least squares Output: a matrix of the 4...
Platforms: Matlab
License: Freeware | Size: 10 KB | Download (44): dose_response Download |
ECR is a new method for regression analysis, which employs a supervising alpha to supervise the X-matrix decomposition. When alpha=0, ECR coincides with principal component regression (PCR), when alpha=1, ECR coincides with partial least squares (PLS), when alpha is between 0 and 1, ECR could...
Platforms: Matlab
License: Shareware | Cost: $0.00 USD | Size: 20.48 KB | Download (39): Elastic Component Regression (ECR) for uncovering the path from PCR to PLS Download |
This toolbox contains a set of functions which can be used to compute the Least Median of Squares regression, the Reweighted Least Squares regression, the accociated location and scale estiamtors, and the Minimum Volume Ellipsoid. The concept is the minimization of the median of the squared...
Platforms: Matlab
License: Shareware | Cost: $0.00 USD | Size: 10 KB | Download (49): LMS Toolbox Download |
I have about a hundred MATLAB routines related to econometrics, statistics and introductory economics teaching, which are written mostly in my spare time in the past years. Most of these MATLAB functions / scripts are supplied with a graphic user interface so that so you may estimate the model...
Platforms: Matlab
License: Shareware | Cost: $0.00 USD | Size: 6.33 MB | Download (48): Toolkit on Econometrics and Economics Teaching Download |
Auto Gaussian & Gabor Surface fit---Functions to fit a 1D Gaussian to a curve and a 2D Gaussian or Gabor to a surface. The routines are automatic in the sense that they do not require the specification of starting guesses for the model parameters. This is done by evaluating the quality of fit for...
Platforms: Matlab
License: Shareware | Cost: $0.00 USD | Size: 10 KB | Download (48): Auto Gaussian & Gabor fits Download |
Two simple models are provided showing the characteristics of basic iterative algorithms for the inversion of kinematics, namely the Jacobian transpose, its pseudo-inverse and the damped least-squares (DLS). The pro's and con's can be compared interactively for a serial two-links and a...
Platforms: Matlab
License: Shareware | Cost: $0.00 USD | Size: 30.72 KB | Download (46): Examples of Basic Iterative Algorithms for Inverse Kinematics Download |
Description: L-BFGS-B is a variant of the well-known "BFGS" quasi-Newton method. This variant uses limited-memory (like L-BFGS), and also handles simple constraints (to be specific, bound constraints, so this includes x >=0 constraints).The authors of LBFGSB have had fortran implementations...
Platforms: Matlab
License: Shareware | Cost: $0.00 USD | Size: 30.72 KB | Download (42): LBFGSB (L-BFGS-B) mex wrapper Download |
Use coeffs = fit2dPolySVD(x, y, z, order) to fit a polynomial of x and y so that it provides a best fit to the data z.Uses SVD which is robust even if the data is degenerate. Will always produce a least-squares best fit to the data even if the data is overspecified or underspecified.x, y, z are...
Platforms: Matlab
License: Shareware | Cost: $0.00 USD | Size: 10 KB | Download (50): 2D polynomial fitting with SVD Download |