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

Home » Public Forums » archive » Re: power law interpolation
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: power law interpolation [message #36455] Wed, 17 September 2003 10:34
Paul Van Delst[1] is currently offline  Paul Van Delst[1]
Messages: 1157
Registered: April 2002
Senior Member
Steve wrote:
>
> Hi,
> is there any function or routine in IDL to perform a power law
> interpolation (i.e. to find the best power-law exponent) from a set of
> data?

Do you mean a fit (rather than interpolation)?

If so, the simplest is a linear fit. If your relationship is

y = x^a

then

ln(y) = a.ln(x)

so do a linear fit to

Y = a.X

to determine the value of a.

Many other options exist depending on the complexity of your data and/or model. The built
in fitting routines include LINFIT, LADFIT, LMFIT, COMFIT, CURVEFIT, POLY_FIT,
SVDFIT...etc.etc.

The best (i.e. ease of use, robust) IDL fitting code I've used is Craig Markwardt's MPFIT
available from his website.

paulv

--
Paul van Delst
CIMSS @ NOAA/NCEP/EMC
Ph: (301)763-8000 x7748
Fax:(301)763-8545
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: power law interpolation
Next Topic: 3D Graphics input

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

Current Time: Fri Oct 10 06:47:59 PDT 2025

Total time taken to generate the page: 0.96002 seconds