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

Home » Public Forums » archive » surface fit
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
surface fit [message #3060] Tue, 08 November 1994 01:05 Go to next message
buteau is currently offline  buteau
Messages: 9
Registered: September 1992
Junior Member
Has somebody written a function to make two-dimensional fits.
I mean a kind of surface_fit , but not ony for polynomial function.
( I need to fit my surface with a gaussian and lorenz function).


Thanks in advance
Re: surface fit [message #3148 is a reply to message #3060] Tue, 08 November 1994 07:24 Go to previous message
thompson is currently offline  thompson
Messages: 584
Registered: August 1991
Senior Member
buteau@bali.saclay.cea.fr (A.Buteau 62 17) writes:

> Has somebody written a function to make two-dimensional fits.
> I mean a kind of surface_fit , but not ony for polynomial function.
> ( I need to fit my surface with a gaussian and lorenz function).


> Thanks in advance

One can use ordinary fitting routines for multidimensional fits. Suppose that
one had a grid of X,Y points. One can then define an index S over all possible
X,Y pairs. For example, if one had a grid of 10 X points by 10 Y points, then
S would be an index running from 0 to 99.

One then is not fitting F(X,Y) but F(S). All one needs to do then is to write
the definition of the function so that it can then determine X(S) and Y(S). A
simple way to do this is through a common block.

Bill Thompson
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: NR_ODEINT anyone?
Next Topic: Re: Xfig driver for IDL ??????

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

Current Time: Fri Oct 10 00:26:50 PDT 2025

Total time taken to generate the page: 0.72104 seconds