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

Home » Public Forums » archive » Re: fit function
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: fit function [message #27318 is a reply to message #27312] Tue, 16 October 2001 12:36 Go to previous messageGo to previous message
Craig Markwardt is currently offline  Craig Markwardt
Messages: 1869
Registered: November 1996
Senior Member
"Martin Downing" <martin.downing@ntlworld.com> writes:
> Looks like you want to implement one of Craig's fitting routines with a
> "m*x^n" function
>
> Martin
>
> "Reimar Bauer" <r.bauer@fz-juelich.de> wrote in message
> news:3BCC75F8.952BFBD1@fz-juelich.de...
>> Dear all,
>>
>>
>> I need a fit function which returns y=mx^n.
>>
>> Is someone able to share some code.

I feel that Reimer must be asking for more than the obvious. Either
that, or someone hijacked his email account. :-)

This function should do the trick:

function powlaw, x, p
return, p(0)*x^p(1)
end

Craig

--
------------------------------------------------------------ --------------
Craig B. Markwardt, Ph.D. EMAIL: craigmnet@cow.physics.wisc.edu
Astrophysics, IDL, Finance, Derivatives | Remove "net" for better response
------------------------------------------------------------ --------------
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: the dimension of array
Next Topic: bug in contour?

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

Current Time: Wed Oct 08 19:33:04 PDT 2025

Total time taken to generate the page: 0.00426 seconds