Skip to content

shunsukeaihara/pydtw

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pydtw

Fast Implementation of 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, alignment_a, alignment_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, alignment_a, alignment_b = dtw2d(a, b)

About

Fast Imprementation of Dynamic Time Warping For Python

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages