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 #27291] Wed, 17 October 2001 01:31 Go to previous message
R.Bauer is currently offline  R.Bauer
Messages: 1424
Registered: November 1998
Senior Member
Craig Markwardt wrote:
>
> "Pavel A. Romashkin" <pavel.romashkin@noaa.gov> writes:
>
>> Reimar Bauer wrote:
>>>
>>> Dear all,
>>>
>>> I need a fit function which returns y=mx^n.
>>>
>>> Is someone able to share some code.
>>
>> Maybe, the following will do?
>>
>> FUNCTION junk, p, x=x, y=y
>> return, y - (p[0]*x^p[1])
>> END
>>
>> ; Here, X and Y are your vectors to be fitted.
>>
>> coefs = MPFIT('junk', [1.d, 1.d], functargs={x:x, y:y}, /quiet)
>>
>> This assumes that, just like everybody else, you have in your path
>> everything Craig cared to post on his web site :-)
>
> Sometimes I wonder if *I* have everything in my path that is posted on
> my web site. :-)
>
> By the way, in the example you posted Pavel, MPFIT is the only thing
> you need to run it. I try pretty hard to make most programs
> stand-alone.

Dear Pavel and Craig,

works now thanks.

It was to late yesterday and I have a cold.


regards
Reimar



--
Reimar Bauer

Institut fuer Stratosphaerische Chemie (ICG-1)
Forschungszentrum Juelich
email: R.Bauer@fz-juelich.de
http://www.fz-juelich.de/icg/icg1/
============================================================ ======
a IDL library at ForschungsZentrum Juelich
http://www.fz-juelich.de/icg/icg1/idl_icglib/idl_lib_intro.h tml

http://www.fz-juelich.de/zb/text/publikation/juel3786.html
============================================================ ======

read something about linux / windows
http://www.suse.de/de/news/hotnews/MS.html
[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 15:06:23 PDT 2025

Total time taken to generate the page: 0.00433 seconds