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

Home » Public Forums » archive » Re: Distance between two sets of datapoints
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: Distance between two sets of datapoints [message #70228 is a reply to message #70223] Fri, 26 March 2010 06:11 Go to previous messageGo to previous message
Kenneth P. Bowman is currently offline  Kenneth P. Bowman
Messages: 585
Registered: May 2000
Senior Member
In article
<eb0d2a64-900b-4c9e-9599-699dcd3da17b@k4g2000prh.googlegroups.com>,
Maxwell Peck <maxjpeck@gmail.com> wrote:

> Thanks Ken, I'll give it a shot. I had tried a similar loop (I
> thought) but it seemed to be very slow that is why i was looking at
> vectorising it similar to distance_measure.
>>
>> FOR i = 0, nb-1 DO dist[0,i] = SQRT((xb[i] - xa)^2 + (yb[i] - ya)^2)

This should vectorize reasonably well if na is large and nb is
not too large.

Ken
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: Highlight default button
Next Topic: IDL licensing

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

Current Time: Fri Oct 10 06:19:07 PDT 2025

Total time taken to generate the page: 0.48100 seconds