-
Notifications
You must be signed in to change notification settings - Fork 87
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
Allow for duplicate coordinates #4
Comments
+1 |
I'm thinking of adding a DuplicateBehavior property that is an enum with the following possible values:
This would be added in a minor update with a default behavior of Skip for backwards compatibility. Then in a major update I would update the default behavior to be Allow since I believe most cases would not care about multiple points at the same coordinate. |
I've decided not to allow duplicates for now. However, as of version 1.2.0 I've added an overloaded constructor for the KdTree which takes an AddDuplicateBehavior enum which specifies how to handle attempts to add nodes with coordinates that already exist. There are three options:
|
Currently the tree will not allow you to add multiple data points with the same coordinates.
Though, I don't think there's any technical requirement for not allowing duplicate coordinates.
The text was updated successfully, but these errors were encountered: