Skip to content
Prev 2087 / 29559 Next

efficient code/function for rectangular SP weight Matrix and gwr

On Tue, 22 May 2007, Sam Field wrote:

            
Would spDistsN1() in sp have helped to speed things up a little? Looping
over the 1k grid points and passing out the 30k patient points shouldn't
be very demanding (34 seconds on a oldish box, more if you need Great
Circle distances). For heavyweight things, quadtrees would be a better
choice, I have an unpublished package for approximate nearest neighbours.

Roger