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

Home » Public Forums » archive » Re: Help Wanted: IDL Math Expert
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: Help Wanted: IDL Math Expert [message #9809 is a reply to message #9807] Tue, 19 August 1997 00:00 Go to previous messageGo to previous message
John Votaw is currently offline  John Votaw
Messages: 6
Registered: June 1997
Junior Member
David Fanning wrote:
>
> Hi Folks,
>
> I had a friend ask a question about IDL that I didn't know how
> to answer. (Uh, math is not my strength, you understand. :-))
>
> Suppose I have a set of raw data that is described
> theoretically by two parametric equations. And suppose
> I need to fit these two parametric equations to the data
> since there is no mathematical way to convert the x(t)
> and y(t) equations into a y(x) form. Is there a
> curve fitting routine in IDL that can handle parametric
> equations? Or, failing that, has anyone handled something
> like this in IDL and would be willing to give us a little
> help?
>> Many thanks,

The real question here is what do you mean by a good fit? You must
write an equation in terms of the parameters in your parametric
equations that is minimal when the desired fit is achieved.

For example, suppose your data is (x,y) pairs and you would like to fit
it to a generalized ellipse. Do you want to minimize the squared
distance along a vector from the center of the ellipse between the data
and the fit? Perhaps you want to minimize the distance along a line
normal to the fit curve.

The difficult part is writting this 'figure of merit' equation. Once
you have it, you can use any of the function minimization routines. I
suggest you start by looking at Powell.

Good Luck,

John R. Votaw
votaw@commander.eushc.org
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: IDL/C++
Next Topic: Insight functionality ???

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

Current Time: Fri Oct 10 06:26:14 PDT 2025

Total time taken to generate the page: 1.36085 seconds