Closed AsherJingkongChen closed 11 months ago
All modified lines are covered by tests :white_check_mark:
Comparison is base (
963da3f
) 100.00% compared to head (f43c550
) 100.00%.
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
Background This update addresses the issue related to API changes in the library. Specifically, the change involves the
Vector::distance
method, which has been replaced with theMetric::measure
method to calculate the distance between vectors. The updated API now follows the signature:Changes
metric
module to provide distance functions and compare functions.simd
feature to the public scope and documented them. This enhances maintainability.main.yml
) for improved quality assurance.src/metric/metric.rs
, simple formulas are provided for every metric.Reasons The API change was made to improve clarity and consistency within the library. By introducing the
Metric::measure
method, it provides a more descriptive and intuitive way to calculate distances between vectors. Additionally, refactoring thesimd
module enhances maintainability, making it easier to maintain and extend the codebase.