stefankoegl/kdtree — pull request #1 by RafiKueng (2011-11-28 19:52:02+00:00)
Title: added function to get all neigbours within a certain distance

hey

i used your kd-tree code for a homework and modified it slighlty so one can get all neigbours within a definied distance.

def search_nn_dist(self, point, distance, best=None):

it's not more than a quick and dirty hack, seems to work, but please consider it untested if youre interessted in getting it...

the part at the top of the file is only for the teaching assistant. please feel free to copy the code, no need to add my name or something...

best
rafael kueng