Rust
Rust copied to clipboard
Implement Minkowski Difference
Description
The Minkowski distance or Minkowski metric is a metric in a normed vector space which can be considered as a generalization of both the Euclidean distance and the Manhattan distance. It is named after the Polish mathematician Hermann Minkowski. https://en.wikipedia.org/wiki/Minkowski_distance
This metric is useful in the field of machine learning to judge the similarity between data points. It's also employed for collision detection in game engines.
Type of change
- [X] New feature (non-breaking change which adds functionality)
Checklist:
- [X] I ran bellow commands using the latest version of rust nightly.
- [*] I ran
cargo clippy --all -- -D warningsjust before my last commit and fixed any issue that was found. - [X] I ran
cargo fmtjust before my last commit. - [X] I ran
cargo testjust before my last commit and all tests passed. - [X] I added my algorithm to the corresponding
mod.rsfile within its own folder, and in any parent folder(s). - [X] I added my algorithm to
DIRECTORY.mdwith the correct link. - [X] I checked
COUNTRIBUTING.mdand my code follows its guidelines.
- The shown issues are unrelated to my changes and already existed beforehand
Codecov Report
Attention: Patch coverage is 97.72727% with 1 line in your changes missing coverage. Please review.
Project coverage is 95.02%. Comparing base (
2545e0e) to head (a513a55). Report is 4 commits behind head on master.
| Files | Patch % | Lines |
|---|---|---|
| src/math/minkowski_difference.rs | 97.72% | 1 Missing :warning: |
Additional details and impacted files
@@ Coverage Diff @@
## master #741 +/- ##
=======================================
Coverage 95.02% 95.02%
=======================================
Files 303 304 +1
Lines 22577 22607 +30
=======================================
+ Hits 21454 21483 +29
- Misses 1123 1124 +1
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
This pull request has been automatically marked as abandoned because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
Please ping one of the maintainers once you commit the changes requested or make improvements on the code. If this is not the case and you need some help, feel free to ask for help in our Gitter channel. Thank you for your contributions!