Return an array with all the items found with distance <= threshold from item.
(self, item, threshold)
| 197 | self.nodes[root].append((item, dist)) |
| 198 | |
| 199 | def find(self, item, threshold): |
| 200 | "Return an array with all the items found with distance <= threshold from item." |
| 201 | result = [] |
| 202 | if self.nodes: |
| 203 | self._finder(self.root, item, threshold, result) |
| 204 | return result |
| 205 | |
| 206 | def _finder(self, root, item, threshold, result): |
| 207 | dist = self.distance(root, item) |
no test coverage detected