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

Start using PMVector and cleaning #37

Merged
merged 3 commits into from
Apr 18, 2023
Merged

Start using PMVector and cleaning #37

merged 3 commits into from
Apr 18, 2023

Conversation

jordanmontt
Copy link
Member

@jordanmontt jordanmontt commented Apr 17, 2023

  • Added vector-matrix dependencie to the baseline.
  • Refactored Euclidean, Hellinger, Mannhattan and Minkowski distances to use the norm of PMVector. Those algos use the norm of the vector to calculate the distance
  • Improved class comment of Hellinger distance. Added explanations of why we implemented that way because the original formula has an integral and we didn't implemented like that.
  • Separated Hellinger distance test into several tests. One there are 4 tests instead of 1

…nhattan and Minkowski distances to use the norm function of PMVector. Improved class comment of Hellinger distance. Separeted Hellinger distance test into several tests.
@jordanmontt jordanmontt requested review from hernanmd and jecisc April 17, 2023 15:00
@jordanmontt
Copy link
Member Author

This also closes #34

src/AI-EditDistances/AIHellingerDistance.class.st Outdated Show resolved Hide resolved
src/AI-EditDistances/AIHellingerDistance.class.st Outdated Show resolved Hide resolved
@jordanmontt jordanmontt merged commit 950719c into master Apr 18, 2023
@jordanmontt jordanmontt deleted the refactorings branch April 18, 2023 10:03
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.

2 participants