我想找到时间序列和使用fastdtw(https://github.com/slaypni/fastdtw/tree/master/fastdtw)在python中执行动态时间扭曲之间的相似性。
计算的距离有时会随输入顺序而变化,特别是对于长时间序列。
下面是一个例子:
x = np.random.rand(44)
y = np.random.rand(40)
d1, inx1 = fastdtw(y, x)
d2, inx2= fastdtw(y, x)
d1, d2
知道为什么吗?在
Tags:
既然可以快速准确地计算DTW,为什么要使用fastDTW,它是近似的(尽管它的名字是slow)?https://www.cs.unm.edu/~mueen/DTW.pdf
相关问题 更多 >
编程相关推荐