Skip to content
Prev 79486 / 398502 Next

Finding the neighbors of the point

On Fri, 21 Oct 2005, Leaf Sun wrote:

            
And huge is how big? For very large problems, you'll need a kd-tree or 
r-tree approach to divide up the point locations before making the spatial 
query (I think the retention of neighbours with a larger z is the final 
step). There do not seem to be such functions in R or contributed packages 
at present. If you are willing to collaborate, I can pass on a draft 
package corrected by Christian Sangiorgio for approximate nearest 
neighbours (an interface to ANN by David Mount and collaborators), but it 
isn't working yet. So an investment in time and some knowledge of C++ will 
be useful.