comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Re: 2-d fitting
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: 2-d fitting [message #63522] Wed, 12 November 2008 10:00 Go to previous message
R.G. Stockwell is currently offline  R.G. Stockwell
Messages: 363
Registered: July 1999
Senior Member
"xqinshan" <xqinshan@tom.com> wrote in message
news:2dec9a37-fe3b-4999-a80b-e47d06c5e13a@v22g2000pro.google groups.com...
> Hi,
> I have a set of data zi at indepent vaiables (xi,yi). I want to get
> coefficients of a fiting function such as f(x,y)=a*f1(x,y)+b*f2(x,y)
> +c*f3(x,y)+..., f1(x,y),f2(x,y)... are given by myself. If f1(x,y),f2
> (x,y)... are polunomials, we can use sfit or mpfitfun to do it. Are
> there any routins to do it?
>
> thanks,
>
> Xqinshan

Just write out the A matrix (in Ax = b, where x is unknown, b is your data,)
and fire it off to the svd routines.

The 'two dimensions' are just columns.
For instance:
1, x,y,xy,x^2,y^2

Cheers,
bob
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: latitude, longitude and a data point
Next Topic: How to control character size freely?

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Wed Oct 08 19:19:36 PDT 2025

Total time taken to generate the page: 0.00427 seconds