Crates.io | dtw_rs_band_fork |
lib.rs | dtw_rs_band_fork |
version | 1.0.1 |
source | src |
created_at | 2024-04-24 19:24:58.636849 |
updated_at | 2024-04-26 14:01:37.815429 |
description | Fork of Dynamic Time Warping Library for Rust |
homepage | https://github.com/shshemi/dtw-rs |
repository | https://github.com/shshemi/dtw-rs |
max_upload_size | |
id | 1219429 |
size | 1,123,904 |
A Dynamic Time Warping (DTW) library for Rust
Computation methods:
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());