Skip to content

Adding a recursive range query method to the KdTree class.#1

Closed
antoniocavalcante wants to merge 1 commit into
phishman3579:masterfrom
antoniocavalcante:master
Closed

Adding a recursive range query method to the KdTree class.#1
antoniocavalcante wants to merge 1 commit into
phishman3579:masterfrom
antoniocavalcante:master

Conversation

@antoniocavalcante

Copy link
Copy Markdown

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.

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.

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You don't account for Z_AXIS here.

@phishman3579

Copy link
Copy Markdown
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.

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@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,

@phishman3579

Copy link
Copy Markdown
Owner

@antoniocavalcante By the way, thanks for the pull request!

@phishman3579

Copy link
Copy Markdown
Owner

@antoniocavalcante Also.. DBScan.getDistance() is undefined. You should probably include that in the KDTree; how is it different than euclidean distance?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants