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

Home » Public Forums » archive » strange behaviour of ladfit - known?
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
strange behaviour of ladfit - known? [message #52894] Thu, 08 March 2007 01:29
Ingo von Borstel is currently offline  Ingo von Borstel
Messages: 54
Registered: September 2006
Member
Hi there,

I just encountered a strange behaviour of ladfit - it just won't return
to the command prompt when I do the following:

###############################
; 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)
###############################

It works nicely as soon as I add an offset to y or if I use different
data, though I can reproduce it with any subset of x. Is there a way to
circumvent this behaviour or test prior to its occurence for it, if I
don't know my input data prior to the start of a programme? I'm using
IDL 6.1.
Or does anyone know whether this behaviour can be reproduced with a
newer version of IDL?

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.
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Fitting 3D spline to an x,y,z point cloud
Next Topic: Re: Fitting 3D spline to an x,y,z point cloud

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

Current Time: Wed Oct 08 19:57:51 PDT 2025

Total time taken to generate the page: 0.00466 seconds