-
Notifications
You must be signed in to change notification settings - Fork 1
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
Feature/nav 32 range search in kd tree #13
Conversation
… Nonetheless, it’s more accurate in calculating the distance between long distances
…e/NAV-23-kd-tree-for-stops
- implement generic approach for KD-tree - simplified interface of Coordinates into `TwoDimensionalCoordinates` . This allows us to handle cartesian and geographic coordinate system - use generic name for `X` `Y` and `LONG` `LAT` - remove redundant functions in utils
… attributes/classes.
…/naviqore/raptor into feature/NAV-30-write-unit-tests-for-KD-Tree # Conflicts: # src/main/java/ch/naviqore/gtfs/schedule/model/Coordinate.java
- create `StopFacilityMock` for TestCase - create `KDTree` test cases for finding nearest neighbour
…to add locations.
…for KDTree builder.
Nav 29 balanced kd tree
…for-KD-Tree Feature/nav 30 write unit tests for kd tree
…' into feature/NAV-32-range-search-in-kd-tree # Conflicts: # src/main/java/ch/naviqore/utils/spatial/KDTree.java # src/test/java/ch/naviqore/utils/spatial/KDTreeBuilderTest.java
… positive radius values.
- Private classes and enums are not visible anymore in public methods as parameters or return types - Move KDNode and KDUtils to inner members of KDTree, since they will not be used from the outside, except for testing. - Rename MockCoordinate to CartesianCoordinate and move all coordinate types into the spatial package. - Move tree into its own index package. - Add javadoc to public interfaces, classes and methods.
Looks good! And indeed very performant, unnoticeable when run with the benchmark! 🚀 There are some issues with out of scope visiblity of KDNode and internal Coordinates, therefore i refactored this in #14. (The PR is into this branch). Please have a look @clukas1 @Brunner246 There are some further points we should discuss on friday, concerning the style guide:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
See comment above 😄
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks for your effort =)
…NAV-32-range-search-in-kd-tree # Conflicts: # src/main/java/ch/naviqore/gtfs/schedule/model/GtfsSchedule.java # src/main/java/ch/naviqore/gtfs/schedule/model/GtfsScheduleBuilder.java # src/main/java/ch/naviqore/gtfs/schedule/model/Stop.java
Final pull request for KD Tree implementation into main.