4 releases

0.3.2 Jun 3, 2024
0.3.1 May 30, 2024
0.3.0 May 28, 2024
0.1.0 May 20, 2024

#381 in Simulation

Download history 126/week @ 2024-05-16 135/week @ 2024-05-23 269/week @ 2024-05-30 32/week @ 2024-06-06 4/week @ 2024-06-13 3/week @ 2024-06-27 11/week @ 2024-07-04

178 downloads per month

Apache-2.0

21KB
346 lines

ARTIE Common Library for Artie Distance Calculation

Description

This Rust library provides functionality to calculate the "Artie distance," a measure of dissimilarity between two hierarchical structures, such as those represented by workspaces in programming environments. The Artie distance encompasses several metrics: family, block, position, and input distances, each measuring different aspects of difference.

Features

  • Family Distance: Counts the unique families present in one workspace but absent in the other.
  • Block Distance: Measures the number of uniquely named blocks that do not match between workspaces.
  • Position Distance: Aggregates positional differences for blocks with the same name but located in different places within the two workspaces.
  • Input Distance: For common blocks, this metric calculates the absolute difference in numerical fields and counts mismatches in non-numerical fields.

Installation

Include the following in your Cargo.toml file to use this library:

[dependencies]
artie_common = "0.3.0"

Dependencies

~1.3–2.3MB
~49K SLoC