Adding a recursive range query method to the KdTree class.#1
Closed
antoniocavalcante wants to merge 1 commit into
Closed
Adding a recursive range query method to the KdTree class.#1antoniocavalcante wants to merge 1 commit into
antoniocavalcante wants to merge 1 commit into
Conversation
Adding a recursive range query. Two methods were added: searchNodeRangeRecursive and rangeRecursive. Given a node and a range (eps), the method range recursive executes searchNodeRangeRecursive, that returns all the nodes within an eps distance.
Owner
There was a problem hiding this comment.
You don't account for Z_AXIS here.
Owner
|
@antoniocavalcante I'll merge the pull request when you account for Z_AXIS. But it won't be a direct merge since you changed the package name and reformatted. |
Owner
There was a problem hiding this comment.
@antoniocavalcante You should probably rename to searchRange since the user shouldn't care how (recursive) you are searching. Also, it'd be nice to know the units of eps and if it's <= eps or < eps for the results,
Owner
|
@antoniocavalcante By the way, thanks for the pull request! |
Owner
|
@antoniocavalcante Also.. DBScan.getDistance() is undefined. You should probably include that in the KDTree; how is it different than euclidean distance? |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adding a recursive range query. Two methods were added: searchNodeRangeRecursive and rangeRecursive.
Given a node and a range (eps), the method range recursive executes searchNodeRangeRecursive, that returns all the nodes within an eps distance.