Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

find_near_neighbors for only one NN #67

Open
gsamaras opened this issue Nov 30, 2016 · 1 comment
Open

find_near_neighbors for only one NN #67

gsamaras opened this issue Nov 30, 2016 · 1 comment

Comments

@gsamaras
Copy link

Is there a way to get only one result when using the find_near_neighbors? I am interesting in solving the decision problem; is there a point in the pointset thats lies within an r radius with the query?

By using the find_near_neighbors it tries to find all the points that satisfy this condition.

@ludwigschmidt
Copy link
Collaborator

As we discussed via email, find_near_neighbors does indeed go over the entire probing sequence at the moment and computes a distance for each candidate. We'll add a function that terminates once the first point within distance r is found.

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

No branches or pull requests

2 participants