Rust icon indicating copy to clipboard operation
Rust copied to clipboard

Implement Minkowski Difference

Open jerr-it opened this issue 8 months ago • 2 comments

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