fastdtw
Python implementation of FastDTW [1], which is an approximate Dynamic Time Warping (DTW) algorithm that provides optimal or near-optimal alignments with an O(N) time and memory complexity.
Install
pip install fastdtw
Example
import numpy as np from scipy.spatial.distance import euclidean from fastdtw import fastdtw x = np.array([[1,1], [2,2], [3,3], [4,4], [5,5]]) y = np.array([[2,2], [3,3], [4,4]]) distance, path = fastdtw(x, y, dist=euclidean) print(distance)
References
Release files for fastdtw 0.2.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| fastdtw-0.2.2.tar.gz | 2.3 kB | Details |
Release files / fastdtw-0.2.2.tar.gz
| Download URL | fastdtw-0.2.2.tar.gz |
|---|---|
| Size | 2.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b3b6d7c10605c9beadd6399e7a3902597d398dbbb378cf06c51a964bcf725307
|
|
BLAKE2b-256 checksum How to use checksums |
f2f59b5f97a540247aab9c29335c559fc34c292ceba60352d413dfd5201f08b3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |