Code covered by the BSD License  

Highlights from
Total Least Squares Method

image thumbnail

Total Least Squares Method

by

 

19 Apr 2011 (Updated )

Mathematical method known as total least squares or orthogonal regression or error-in-variables.

model(xm, a)
    function [yM] = model(xm, a)
    %
    % Model (linear and nonlinear) definitions
    % for the function numerFminS() as a 'fun'
    %
    % Linear (dataLRM.txt):
    %yM = zeros(2,1);
    %yM=a(1)*xm+a(2);
    % Second degree polynomial (dataNRM.txt):
    yM = zeros(3,1);
    yM=a(1)*xm.^2+a(2)*xm+a(3);
    % Power exponet (dataERM.txt):        
    %yM = zeros(2,1);
    %yM=a(1)*xm.^a(2);    

Contact us