Re: Fitting a second order polynomial with singular value decomposition
by "R.G. Stockwell" <nothanks@[EMAIL PROTECTED]
>
Apr 4, 2008 at 11:27 AM
"JoaoCarr" <jmbcarreiras@[EMAIL PROTECTED]
> wrote in message
news:894d4397-ade3-4ea8-9f1b-97c309cb24fe@[EMAIL PROTECTED]
> Dear all,
>
> I'm trying to fit in IDL a function of the type:
>
> y = a0 + a1x1 + a2x1^2 + a3x2 + a4x2^2 + a5x3 + a6x3^2
>
> I've tried to use svdfit but I believe this procedure only allows
> functions of the type y=f(x).
>
> Any suggestion would be greatly appreciated.
You don't have to use svdfit, use the svd decomp routine (svdc, svsol).
You can make any matrix you like (i.e. any function, any dimensions)