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

Home » Public Forums » archive » Re: Robust curve 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: Robust curve fitting [message #12451 is a reply to message #12449] Tue, 04 August 1998 00:00 Go to previous messageGo to previous message
Craig Markwardt is currently offline  Craig Markwardt
Messages: 1869
Registered: November 1996
Senior Member
Mark Elliott <mark@mail.mmrrcc.upenn.edu> writes:
>
> Do you or anyone reading this know if there are similar IDL (or
> MINPACK) routines which perform Levenberg-Marquardt fitting to COMPLEX
> functions?
>

I'm not an expert in the field, I just translated the program!

I can tell you that MPFIT itself does not understand complex
variables; they have to be either FLOAT or DOUBLE. I am not even sure
what the least-squares problem means when you talk about complex
numbers. If you want to minimize the Euclidean distance between data
and model points on the complex plane, and if your data have
independent errors in the real and imaginary components, then the
solution should be easy.

You should be able to treat your data as a two-dimensional function.
In principle, MPFIT and its siblings can fit a function of any number
of dimensions. So you could possibly just separate the real and
imaginary components out in both your data and function. MPFIT will
minimize the sum of the squared differences between individual
components, which amounts to minimizing the Euclidean distance I
think.

Good luck,

Craig

--
------------------------------------------------------------ --------------
Craig B. Markwardt, Ph.D. EMAIL: craigmnet@astrog.physics.wisc.edu
Astrophysics, IDL, Finance, Derivatives | Remove "net" for better response
------------------------------------------------------------ --------------
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Interrupting a widget application
Next Topic: Re: Fits files

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

Current Time: Sun Oct 12 01:30:07 PDT 2025

Total time taken to generate the page: 0.40602 seconds