Crates.io | dtw_rs |
lib.rs | dtw_rs |
version | 0.9.5 |
source | src |
created_at | 2023-07-19 14:39:22.045892 |
updated_at | 2023-07-19 17:24:27.598934 |
description | Dynamic Time Warping Library for Rust |
homepage | https://github.com/shshemi/dtw-rs |
repository | https://github.com/shshemi/dtw-rs |
max_upload_size | |
id | 920363 |
size | 1,115,709 |
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());