Skip to main content

Fast Imprementation of the Dynamic Wime Warping

Project description

pydtw

Fast Imprementation of the Dynamic Time Warping For Python.

install

pip install pydtw

usage

Alignment for two 1-dimensional sequences

from pydtw import dtw1d
import numpy as np
a = np.random.rand(10)
b = np.random.rand(15)
cost_matrix, cost, alignmend_a, alignmend_b = dtw1d(a, b)

Alignment for two 2-dimensional sequences

from pydtw import dtw2d
import numpy as np

a = np.random.rand(10, 4)
b = np.random.rand(15, 4)
cost_matrix, cost, alignmend_a, alignmend_b = dtw2d(a, b)

Project details


Download files

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

Files for pydtw, version 2.0.2
Filename, size File type Python version Upload date Hashes
Filename, size pydtw-2.0.2.tar.gz (4.6 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page