wannesm / dtaidistance

Time series distances: Dynamic Time Warping (fast DTW implementation in C)
Other
1.08k stars 184 forks source link

input dim for dtw #129

Closed xiezhiqing0112 closed 3 years ago

xiezhiqing0112 commented 3 years ago

Does dtw.distance_fast() only support simgle dim to input? I use the (N, 3) for input, but got error File "dtaidistance/dtw_cc.pyx", line 257, in dtaidistance.dtw_cc.distance ValueError: Buffer has wrong number of dimensions (expected 1, got 2)

wannesm commented 3 years ago

You need to use the dtw_ndim submodule: dtw_ndim.distance_fast(). The usage should be identical.

xiezhiqing0112 commented 3 years ago

Thank you very much