Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions kdtree.py
Original file line number Diff line number Diff line change
Expand Up @@ -406,7 +406,7 @@ def search_knn(self, point, k, dist=None):
distances.

dist is a distance function, expecting two points and returning a
distance value. Distance values can be any compareable type.
distance value. Distance values can be any comparable type.

The result is an ordered list of (node, distance) tuples.
"""
Expand Down Expand Up @@ -484,7 +484,7 @@ def search_nn(self, point, dist=None):
with this location will be returned (not its neighbor).

dist is a distance function, expecting two points and returning a
distance value. Distance values can be any compareable type.
distance value. Distance values can be any comparable type.

The result is a (node, distance) tuple.
"""
Expand All @@ -499,7 +499,7 @@ def _search_nn_dist(self, point, dist, results, get_dist):
nodeDist = get_dist(self)

if nodeDist < dist:
results.append(self.data)
results.append(self.data)

# get the splitting plane
split_plane = self.data[self.axis]
Expand Down