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

wrong number of neighbours #2

Open
ofosukin opened this issue Nov 28, 2018 · 1 comment
Open

wrong number of neighbours #2

ofosukin opened this issue Nov 28, 2018 · 1 comment

Comments

@ofosukin
Copy link

wrong number of neighbours
inside regionQuery, before line 143
you must skip findind the euclidean distance of P to the same point later referenced as pn
Otherwise, this returns 0, which is always less than eps.
hence the number of neighbours will always be 1 more than actual neighbours

add this if statement just before line 143
if (pn==p):
continue

@lu-lu-xue
Copy link

In fact, it is not necessary.
Because the smallest number, MinPts, of neighbors doesn't exclude the seed point itself.
So it's ok when p==pn.

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