help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How do you find curvature of "splattered" data?


From: Quentin Spencer
Subject: Re: How do you find curvature of "splattered" data?
Date: Mon, 13 Mar 2006 16:42:43 -0600
User-agent: Mozilla Thunderbird 1.0.7-1.1.fc4 (X11/20050929)

Robert A. Macy wrote:

Quentin,

an arc, hmmm...interesting concept.

But I think what I need is a polynomial fit to splattered
data.
Where the solution would be a single curved line drawn as a
"best" fit through the set of data.
The curve can be relative to the center of the data set.

Take a look at the polyfit function and see if that's what you're looking for. From your description of the linear fit you were using, it sounds like you may have been using a "total least squares" fit, which I don't think extends easily to polynomial fitting, but you can at least get a standard least squares fit using polyfit.

-Quentin



-------------------------------------------------------------
Octave is freely available under the terms of the GNU GPL.

Octave's home on the web:  http://www.octave.org
How to fund new projects:  http://www.octave.org/funding.html
Subscription information:  http://www.octave.org/archive.html
-------------------------------------------------------------



reply via email to

[Prev in Thread] Current Thread [Next in Thread]