#levenshtein

bin+lib similarity-metrics

A collection of event logs similarity metrics for Rust

1 unstable release

0.1.0 Dec 11, 2022

#52 in #levenshtein

MIT license

13KB
147 lines

similarity-metrics

Library to compute event logs similarity metrics.

Examples

use similarity_metrics::string_distances::damerau_levenshtein_on_logs;

let path_one = "filename_one.csv";
let path_two = "filename_two.csv";
let columns = &["concept:name", "org:resource", "start_timestamp", "time:timestamp"];

let (distance, similarity) = damerau_levenshtein_on_logs(path_one, path_two, columns);

Features

  • damerau_levenshtein - Compute the Damerau-Levenshtein distance between two event logs.

lib.rs:

Library to compute event logs similarity metrics.

Examples

use similarity_metrics::string_distances::damerau_levenshtein_on_logs;

let path_one = "filename_one.csv";
let path_two = "filename_two.csv";
let columns = &["concept:name", "org:resource", "start_timestamp", "time:timestamp"];

let (distance, similarity) = damerau_levenshtein_on_logs(path_one, path_two, columns);

Features

  • damerau_levenshtein - Compute the Damerau-Levenshtein distance between two event logs.

Dependencies

~25MB
~496K SLoC