Skip to main content

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

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

fastdtw-0.2.2.tar.gz (2.3 kB view details)

Uploaded Source

File details

Details for the file fastdtw-0.2.2.tar.gz.

File metadata

  • Download URL: fastdtw-0.2.2.tar.gz
  • Upload date:
  • Size: 2.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for fastdtw-0.2.2.tar.gz
Algorithm Hash digest
SHA256 b3b6d7c10605c9beadd6399e7a3902597d398dbbb378cf06c51a964bcf725307
MD5 7c4738728179032e438f4283f3c1ff13
BLAKE2b-256 f2f59b5f97a540247aab9c29335c559fc34c292ceba60352d413dfd5201f08b3

See more details on using hashes here.

Release history Release notifications | RSS feed

0.3.4

2 files

0.3.2

1 file

0.3.1

1 file

0.3.0

1 file

This release

0.2.2 This release

1 file

0.2.1

1 file

0.2.0

2 files

0.1.0

2 files

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page