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

Home » Public Forums » archive » accelerate processing time
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
accelerate processing time [message #49274] Mon, 10 July 2006 09:47
m.goullant@gmail.com is currently offline  m.goullant@gmail.com
Messages: 10
Registered: July 2006
Junior Member
Hi all,
I'm a newbie in IDL and in programming. I have the following question:

I have an irregular point cloud (X,Y,Z), and i must calculate the
euclidean distances several times because I need to do some iterations
to get the final results:

radio=mask /2

FOR i=0L,N_ELEMENTS(z)-1 DO BEGIN

distances=sqrt((x-x[i])^2+(y-y[i])^2) ; Euclidean distances
neighbors=WHERE(distances LE radio)

ENDFOR

If I have 2 million floating points, with several iterations, the
computing time will be very tedious.

Can anyone advice me in a solution for this!

Thank you! Best regards,
Marie
[Message index]
 
Read Message
Previous Topic: Matlab to IDL
Next Topic: Re: accelerate processing time

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

Current Time: Sun Oct 12 05:33:53 PDT 2025

Total time taken to generate the page: 1.11899 seconds