Rust icon indicating copy to clipboard operation
Rust copied to clipboard

Implement Minkowski Difference

Open jerr-it opened this issue 1 year ago • 2 comments
trafficstars

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 warnings just before my last commit and fixed any issue that was found.
  • [X] I ran cargo fmt just before my last commit.
  • [X] I ran cargo test just before my last commit and all tests passed.
  • [X] I added my algorithm to the corresponding mod.rs file within its own folder, and in any parent folder(s).
  • [X] I added my algorithm to DIRECTORY.md with the correct link.
  • [X] I checked COUNTRIBUTING.md and my code follows its guidelines.
  • The shown issues are unrelated to my changes and already existed beforehand

jerr-it avatar Jun 10 '24 13:06 jerr-it

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.

codecov-commenter avatar Jun 12 '24 00:06 codecov-commenter

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.

github-actions[bot] avatar Aug 08 '24 00:08 github-actions[bot]

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!

github-actions[bot] avatar Aug 15 '24 00:08 github-actions[bot]