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

Home » Public Forums » archive » Re: multi-dimensional SVDFIT?
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Re: multi-dimensional SVDFIT? [message #10953] Fri, 30 January 1998 00:00
thompson is currently offline  thompson
Messages: 584
Registered: August 1991
Senior Member
khayat@enp.umd.edu writes:

> Hi,
> Does anyone know of a .pro which contains the generalized multi-dimensional
> SVDFIT routine? The standard SVDFIT in IDL is in one dimension, y=f(x).
> I am looking for a y=f(x1,x2) SVDFIT.
> Thanks
> M. Khayat

Here's a technique that should work. Define x to be a structure with N
elements, and have x1 and x2 be tags of that structure. For example,

X = {X1: 0.0, X2: 0.0}
X = REPLICATE(X, N_ELEMENTS(X1))
X.X1 = X1
X.X2 = X2

Then, simply define the function being passed to SVDFIT such that it extracts
x1 and x2 from the structure array x.

Bill Thompson
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: Switching back to BW in postscript
Next Topic: Switching back to BW in postscript

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

Current Time: Fri Oct 10 17:11:03 PDT 2025

Total time taken to generate the page: 3.20164 seconds