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

Home » Public Forums » archive » Re: data inside a circle
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: data inside a circle [message #44355 is a reply to message #44349] Fri, 10 June 2005 17:12 Go to previous messageGo to previous message
Rick Towler is currently offline  Rick Towler
Messages: 821
Registered: August 1998
Senior Member
In addition of Rob's suggestion, you could cull much of your data set on
each pass before checking if it is within your circle. Determine the
X/Y bounds of your circle and then extract that subset of data and
operate on that.

I'm walking out the door so I can't provide any pseudo code but
hopefully this will give you an idea or two.

-Rick

angela wrote:
> Hello,
> I have a list of x,y coordinates and I am trying to make circles of
> different centers and radii and find how many of the data points are
> inside in the different circles. Do you happen to know an elegant way
> to do that?
> I have tried to do that using FOR loops but my data points are about
> 10,000 and the number of circles are about 160,000, so it takes about
> 2-3 hours for my program to run. I was wondering if you know of a
> faster way to do that.
>
> Thank you,
> Angela
>
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Determine if class has method/property
Next Topic: JAI and HDF

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

Current Time: Wed Oct 29 03:21:59 PDT 2025

Total time taken to generate the page: 2.08041 seconds