The title says it. In dynamic time warping, I keep hearing that the distance between two distances is the sum of the shortest path's elements. But I also see the distance as the element in the farthest corner? Could somebody please clear this up.
Example:
x = [0,1,1,2]
z = [0,2,2]
gives this cost matrix:
[[ 0. inf inf inf]
[inf 0. 2. 4.]
[inf 1. 1. 2.]
[inf 2. 2. 2.]
[inf 4. 2. 2.]]
meaning that the distance should be 0 + 0 + 1 + 2 + 2 = 5. But every dtw implementation I found returns the distance is 2 (i.e. always returns element in the farthest corner). Thank you!