[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: i just want to use nonlinear curve fitting function , what should i
From: |
Tatsuro MATSUOKA |
Subject: |
Re: i just want to use nonlinear curve fitting function , what should i do? |
Date: |
Mon, 18 Jan 2010 08:44:46 +0900 (JST) |
Hello
--- Jaroslav Hajek wrote:
> In Octave 3.2.0 and higher, nonlinear curve fitting can be done
> through the function fsolve.
> To use in a stand-alone program, you need to link it with the Octave
> libraries, and then take these steps:
Just from curiosity, I would like to know how to do nonlinear curve fitting
through the function
fsolve.
Are the followings right ?
1.Meke residual sum of squares
lsq=sum(yi-f(xi,p))^2
p is a parameter vector assume dimension N
2. Make simultaneous equations from parameter derivatrive
make N simultaneous equations, d lsq/ d p[i ] =0
3. solve non linear simultaneous equations by fslove
Regards
Tatsuro
--------------------------------------
Get the new Internet Explorer 8 optimized for Yahoo! JAPAN
http://pr.mail.yahoo.co.jp/ie8/