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

Objects with zero distance #8

Closed
CodyRude opened this issue Feb 26, 2015 · 1 comment
Closed

Objects with zero distance #8

CodyRude opened this issue Feb 26, 2015 · 1 comment

Comments

@CodyRude
Copy link

I am using the version in CRAN, 2.4.1. I have a dataset that can contain objects with distances of zero. When I run a nearest neighbor search for all objects within a specified radius, the indexes can become switched. For example:

nn.idx[70,] = 71 70
instead of the expected 70 71.

I'm not sure if objects with zero distance are not allowed, or if its a bug. I can supply example data if necessary.

@CodyRude
Copy link
Author

Oh, I just realized it was using the original list to query the data set, and it could grab either point first because they on top of each other. My mistake, sorry.

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

1 participant