


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.