Home > ISET > utility > ieFitLine.m

ieFitLine

PURPOSE ^

Fit a line to the data in x,y

SYNOPSIS ^

function [slope, offset] = ieFitLine(x,y,method)

DESCRIPTION ^

Fit a line to the data in x,y

    [slope, offset] = ieFitLine(x,y,[method])

 Purpose:
   Least squares line y = a*x + b
   Returns slope (a) and offset (b)
   The data must be in the columns of x and y
   
   methods:
   {'oneline','onelineleastsquares','leastsquares'}
   {'multiplelines','multiplelinesleastsquares'}

   This routine has not been used yet or debugged carefully.

 Copyright ImagEval Consultants, LLC, 2003.

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:
Generated on Sun 14-Jan-2007 10:24:23 by m2html © 2003