I have an list of values and I would like to cut it into into sublists of 5 elements and compare each sublist with each sublist of another list which will also be 5 elements in length using CanonicalWarpingDistance. I have been successful in using "Partition" to cut the lists into sublists and I have also been successful in using CanonicalWarpingDistance to compare two single sublists. However, I cannot seem to combine the two to output an array of distances between every sublist in the first list and every sublist in the second list. This is what I have tried:
seq = {52.000, 52.289, 39.000,
0.000, -10.121, -19.000, -22.000, -28.203, -18.000, -6.000, -5.615,
0.000, 0.000, 1.770, 2.000, 4.000, 3.903,
2.000, -4.000, -3.729, -3.000, 4.000, 20.378, 20.000, 47.000,
74.958, 58.000, 54.000, 68.563, 40.000, 17.000, 16.861,
2.000, -4.000, -11.492, -11.000, -20.000, -21.798, -14.000, 6.000,
7.932, 10.000, -1.000, -4.688, -7.000, -7.000, -10.321, -7.000, \
-7.000, -10.321, -7.000, -7.000, -10.321, -7.000, -7.000, -10.321, \
-7.000, -7.000, -10.321, -7.000};
seq2 = {52.000, 52.289, 39.000,
0.000, -10.121, -19.000, -22.000, -28.203, -18.000, -6.000, \
-5.615, 0.000, 0.000, 1.770, 2.000, 4.000, 3.903,
2.000, -4.000, -3.729, -3.000, 4.000, 20.378, 20.000, 47.000,
74.958, 58.000, 54.000, 68.563, 40.000, 17.000, 16.861,
2.000, -4.000, -11.492, -11.000, -20.000, -21.798, -14.000, 6.000,
7.932, 10.000, -1.000, -4.688, -7.000, -7.000, -10.321, -7.000, \
-7.000, -10.321, -7.000, -7.000, -10.321, -7.000, -7.000, -10.321, \
-7.000, -7.000, -10.321, -7.000};
dist = CanonicalWarpingDistance[Partition[seq, 5], Partition[seq2, 5],
Automatic, {"SlantedBand", 950},
Method -> {"MatchingInterval" -> "Flexible"},
DistanceFunction -> EuclideanDistance]
This does run but it does not give me an array of distances. Instead it gives me a huge number which is probably the sum of all of the distances. How can I get the output in an array showing distances between each sublist of "seq" and each sublist of "seq2?"