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

Home » Public Forums » archive » Re: strange behaviour of ladfit - known?
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: strange behaviour of ladfit - known? [message #52884] Thu, 08 March 2007 07:26 Go to previous message
Ingo von Borstel is currently offline  Ingo von Borstel
Messages: 54
Registered: September 2006
Member
Hi,
>> ###############################
>> ; create an array and initilize it
>> x = dblarr(100)
>> for i=0,99 do x[i] = sin(2*!pi/15*i)
>>
>> ;get a short subarray and create another scaled version of it.
>> Important: without offset
>> xcut = x[20:30]
>> y = xcut * 1.6
>>
>> ; calculate the linear relation between xcut and y - or rather try it.
>> print, ladfit(xcut,y)
>> ###############################
>
> I'm using IDL 6.1 on sparc sunos and your code works fine:

Hmm...

> BTW - how about using:
> x = sin(2*!pi/15*dindgen(100))
Sounds like a plan. Thanks for pointing out. I have many applications
where to do this instead of nasty loops.

Best regards,
Ingo


--
Ingo von Borstel <newsgroups@planetmaker.de>
Public Key: http://www.planetmaker.de/ingo.asc

If you need an urgent reply, replace newsgroups by vgap.
[Message index]
 
Read Message
Read Message
Previous Topic: Re: Structure compare
Next Topic: Re: What is the difference between 'curvefit', 'lmfit' and 'svdfit' procudure?

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

Current Time: Fri Oct 10 10:02:14 PDT 2025

Total time taken to generate the page: 1.44112 seconds