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

Home » Public Forums » archive » the fastest way to find number of points in sphere(radius r)
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
the fastest way to find number of points in sphere(radius r) [message #46422] Tue, 22 November 2005 00:16 Go to previous message
snfinder@naver.com is currently offline  snfinder@naver.com
Messages: 35
Registered: August 2005
Member
Dear all,

First of all, my data is three-dimensional set.
I have to use a loop because I have a lot of positions of centers of
spheres that I should examine.
I want to find the # of points inside each sphere.
Now, I use a where function in order to find points inside the cube,
then I compute distances of all. Next, I use where function again to
examine # of distances less than radius of sphere.
I think it is fairly slow when large data is considered.

Is there any faster way?
The fastest way to find the number of points in sphere(radius r)

------------------------------------
data:
positions of points: X, Y, Z
centers of spheres: XC, YC, ZC
radius of spheres: r
------------------------------------

Help me~

Park
[Message index]
 
Read Message
Read Message
Previous Topic: Re: Large array memory problem.
Next Topic: gaussian air dispersion model

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

Current Time: Wed Oct 08 13:41:57 PDT 2025

Total time taken to generate the page: 0.00430 seconds