Skip to content
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

Add Euclidean Distance #610

Merged
merged 10 commits into from
Nov 13, 2023
Merged

Add Euclidean Distance #610

merged 10 commits into from
Nov 13, 2023

Conversation

cyrixninja
Copy link
Contributor

Description

Implemented Euclidean Distance Algorithm in Rust.

References -
https://the-algorithms.com/algorithm/euclidean-distance
https://en.wikipedia.org/wiki/Euclidean_distance

Type of change

  • New feature (non-breaking change which adds functionality)

Checklist:

  • 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.
  • I ran cargo fmt just before my last commit.
  • I ran cargo test just before my last commit and all tests passed.
  • I added my algorithm to the corresponding mod.rs file within its own folder, and in any parent folder(s).
  • I added my algorithm to DIRECTORY.md with the correct link.
  • I checked COUNTRIBUTING.md and my code follows its guidelines.

@codecov-commenter
Copy link

codecov-commenter commented Nov 13, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (0c2f4d9) 94.40% compared to head (a32eb47) 94.40%.

Additional details and impacted files
@@           Coverage Diff           @@
##           master     #610   +/-   ##
=======================================
  Coverage   94.40%   94.40%           
=======================================
  Files         268      269    +1     
  Lines       21824    21850   +26     
=======================================
+ Hits        20602    20628   +26     
  Misses       1222     1222           
Files Coverage Δ
src/math/euclidean_distance.rs 100.00% <100.00%> (ø)

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Member

@siriak siriak left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, thanks!

@siriak siriak merged commit ed80173 into TheAlgorithms:master Nov 13, 2023
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants