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

Home » Public Forums » archive » Re: 2D-fit
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: 2D-fit [message #38284 is a reply to message #38283] Tue, 02 March 2004 07:53 Go to previous messageGo to previous message
Paul Van Delst[1] is currently offline  Paul Van Delst[1]
Messages: 1157
Registered: April 2002
Senior Member
Esa Riihonen wrote:
>
> Hi all!
>
> I seek advice on fitting a following function with 2-free variables mu and
> phi (Below '.' indicates multiplication and '^2' power of 2 ):
>
> F(mu,phi) = a0 + a1.mu + a2.mu^2 + (a3.mu + a4.mu^2).cos(phi-phi0),
>
> phi0 is a constant and ai are the fitting parameters.
>
> Measurement set consists of 240 values (10 values for mu and 24 for phi,
> this in effect a polar coordinate grid with 24 'sectors' and 10 'rings').
>
> So the question what is the best way of doing this in IDL?

*THE* best way would be to download Craig Markwardt's MPFIT library and use that. Not only
is it more robust than equivalent IDL procedures, there's a *lot* more functionality that
will allow you to fit stuff oh so much faster.

Seriously, go to

http://cow.physics.wisc.edu/~craigm/idl/idl.html

and grab his MPFIT library.

paulv

--
Paul van Delst
CIMSS @ NOAA/NCEP/EMC
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: Statistic codes: Significance level
Next Topic: Re: BYTSCL and NAN keyword

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

Current Time: Fri Oct 10 07:52:41 PDT 2025

Total time taken to generate the page: 2.07896 seconds