dtw_rs

Crates.iodtw_rs
lib.rsdtw_rs
version0.9.5
sourcesrc
created_at2023-07-19 14:39:22.045892
updated_at2023-07-19 17:24:27.598934
descriptionDynamic Time Warping Library for Rust
homepagehttps://github.com/shshemi/dtw-rs
repositoryhttps://github.com/shshemi/dtw-rs
max_upload_size
id920363
size1,115,709
Shayan Hashemi (shshemi)

documentation

https://docs.rs/dtw_rs/latest/dtw_rs/

README

DTW_RS

A Dynamic Time Warping (DTW) library for Rust

Computation methods:

  • Dynamic programming
  • Dynamic programming with the Sakoe-Chuba Band
  • Dynamic programming with the Itakura Parallelogram (future plan)
  • FastDTW (future plan)

Install:

cargo add dtw_rs

Usage:

use dtw_rs::{Algorithm, DynamicTimeWarping};

let a = [1.0, 3.0, 9.0, 2.0, 1.0];
let b = [2.0, 0.0, 0.0, 8.0, 7.0, 2.0];

let dtw = DynamicTimeWarping::between(&a, &b);

println!("Distance: {}, Path: {:?}", dtw.distance(), dtw.path());

Commit count: 61

cargo fmt