pollen-robotics / dtw

DTW (Dynamic Time Warping) python module
GNU General Public License v3.0
1.16k stars 233 forks source link

Fix fastdtw on 1D sequences #9

Closed rob-med closed 7 years ago

rob-med commented 7 years ago

fastdtw (in details, scipy's cdist) fails when called on "row vector" numpy arrays (i.e. 1D sequences). Fix by reshaping 1D sequences to "column vector" format as supported by scipy's cdist.

pierre-rouanet commented 7 years ago

Thx!