{"id":"twed","title":"Time warp edit distance","family":"elastic","definition":"echotime","intro_en":"TWED combines edit penalties, consecutive-value changes and timestamp discrepancies. A match compares both the current pair and the preceding pair; deletions also include elapsed-time stiffness. The animation uses the zero-value, zero-time sentinel and infinite leading boundaries from EchoTime's corrected recurrence.","intro_zh":"TWED 联合考虑编辑惩罚、相邻数值变化和时间戳差异。匹配同时比较当前配对与前一个配对；删除还包括经过时间的刚度代价。动图使用 EchoTime 修正递推中的零值零时刻哨兵及无穷边界。","steps_en":["Set the stated local scoring rule, tolerance and boundary conditions.","Combine value changes, time stiffness and deletion penalties in the minimum-cost recurrence.","Trace the selected predecessor operations from the complete-prefix state.","Read the final score with the normalization explicitly stated below."],"steps_zh":["设置明确的局部计分规则、容差与边界条件。","在最小代价递推中结合数值变化、时间刚度和删除惩罚。","从完整前缀状态沿选定的前驱操作回溯。","按下方明确的归一化约定读取最终分数。"],"formula":"D=min(Dprev+|x_i-y_j|+|x_(i-1)-y_(j-1)|+nu*(|t_i-s_j|+|t_(i-1)-s_(j-1)|),delete_x,delete_y)","caveats_en":["Positive stiffness, timestamps, the sentinel and boundary conventions matter to metric claims. A constrained or resampled approximation does not automatically inherit them.","The small arrays are an algorithm illustration, not evidence of retrieval or classification quality."],"caveats_zh":["正刚度、时间戳、哨兵和边界约定都是度量结论的条件；加约束或重采样近似不自动继承这些性质。","这些小数组用于解释计算过程，不构成检索或分类性能证据。"],"sources":[{"label":"Marteau: TWED recurrence and stiffness","url":"https://arxiv.org/pdf/cs/0703033"},{"label":"EchoTime low-level similarity implementations","url":"https://github.com/ZipengWu365/EchoTime/blob/main/src/echotime/similarity_methods.py"}],"x":[0.2,0.4,1.1,2.4,3.2,2.5,1.2,0.3,-0.4,-0.1],"y":[0.1,0.3,0.5,1.2,2.6,3.1,2.3,1.1,0.2,-0.3],"input_label":"Deterministic illustrative arrays; no benchmark data","parameters":{"normalization":"none","local_norm":"absolute difference","lambda_":0.4,"nu":0.2,"t_x":[1.0,1.8,2.9000000000000004,3.8000000000000003,5.0,6.0,6.8,8.0,9.0,9.9],"t_y":[0.9,1.9,2.8,4.0,4.8,6.0,7.0,7.9,9.0,10.0],"sentinel":[0,0],"boundary":"D00=0; other leading states infinite"},"result":{"label":"distance","value":6.7,"detail":"The explicit definition and parameters shown on this card."},"frames":[{"phase":0,"caption":"Unequal sampling intervals enter the timestamp stiffness term","panel":{"kind":"lines","title":"Explicit timestamps of the two inputs","a":[1.0,1.8,2.9000000000000004,3.8000000000000003,5.0,6.0,6.8,8.0,9.0,9.9],"b":[0.9,1.9,2.8,4.0,4.8,6.0,7.0,7.9,9.0,10.0],"marker":3,"a_label":"x timestamps","b_label":"y timestamps"}},{"phase":0,"caption":"Unequal sampling intervals enter the timestamp stiffness term","panel":{"kind":"lines","title":"Explicit timestamps of the two inputs","a":[1.0,1.8,2.9000000000000004,3.8000000000000003,5.0,6.0,6.8,8.0,9.0,9.9],"b":[0.9,1.9,2.8,4.0,4.8,6.0,7.0,7.9,9.0,10.0],"marker":8,"a_label":"x timestamps","b_label":"y timestamps"}},{"phase":0,"caption":"Match cost includes current, previous and timestamp discrepancies","panel":{"kind":"matrix","title":"Local comparison costs","z":[[0.12,0.5599999999999999,1.3399999999999999,2.66,5.16,7.46,7.6,5.98,4.28,4.3],[0.88,0.24000000000000002,0.5799999999999998,1.9,4.4,6.699999999999999,6.84,5.220000000000001,3.9200000000000004,3.9400000000000004],[2.16,1.4800000000000002,0.7400000000000002,0.6199999999999998,3.1199999999999997,5.42,5.5600000000000005,3.94,4.04,4.460000000000001],[4.5600000000000005,3.8800000000000003,3.1000000000000005,1.86,0.72,3.02,3.36,4.14,4.24,6.06],[7.08,6.4,5.620000000000001,4.3,1.8800000000000001,0.7000000000000002,2.4400000000000004,3.42,5.92,7.739999999999999],[7.619999999999999,6.94,6.16,4.84,2.54,1.2400000000000002,0.7000000000000003,3.0800000000000005,5.58,7.4],[5.9799999999999995,5.3,4.5200000000000005,3.2,3.5,2.4,1.74,0.7200000000000002,3.22,5.04],[4.18,3.5,3.12,3.2,3.5000000000000004,5.0,4.26,1.96,0.62,2.4400000000000004],[null,null,null,null,null,null,null,null,null,null],[null,null,null,null,null,null,null,null,null,null]],"row_label":"x index","col_label":"y index","cursor":[7,0]}},{"phase":0,"caption":"Match cost includes current, previous and timestamp discrepancies","panel":{"kind":"matrix","title":"Local comparison costs","z":[[0.12,0.5599999999999999,1.3399999999999999,2.66,5.16,7.46,7.6,5.98,4.28,4.3],[0.88,0.24000000000000002,0.5799999999999998,1.9,4.4,6.699999999999999,6.84,5.220000000000001,3.9200000000000004,3.9400000000000004],[2.16,1.4800000000000002,0.7400000000000002,0.6199999999999998,3.1199999999999997,5.42,5.5600000000000005,3.94,4.04,4.460000000000001],[4.5600000000000005,3.8800000000000003,3.1000000000000005,1.86,0.72,3.02,3.36,4.14,4.24,6.06],[7.08,6.4,5.620000000000001,4.3,1.8800000000000001,0.7000000000000002,2.4400000000000004,3.42,5.92,7.739999999999999],[7.619999999999999,6.94,6.16,4.84,2.54,1.2400000000000002,0.7000000000000003,3.0800000000000005,5.58,7.4],[5.9799999999999995,5.3,4.5200000000000005,3.2,3.5,2.4,1.74,0.7200000000000002,3.22,5.04],[4.18,3.5,3.12,3.2,3.5000000000000004,5.0,4.26,1.96,0.62,2.4400000000000004],[4.0200000000000005,3.7399999999999998,3.3600000000000003,3.84,5.54,7.040000000000001,6.3,3.92,1.4200000000000002,0.6000000000000001],[4.2,4.120000000000001,4.14,4.620000000000001,6.320000000000001,7.82,7.08,4.7,2.2,0.82]],"row_label":"x index","col_label":"y index","cursor":[9,0]}},{"phase":1,"caption":"Extend solved prefixes using the stated recurrence","panel":{"kind":"matrix","title":"Accumulated edit costs","z":[[0.12,0.92,1.7000000000000002,3.04,5.0,6.140000000000001,7.540000000000001,9.32,10.84,11.94],[null,null,null,null,null,null,null,null,null,null],[null,null,null,null,null,null,null,null,null,null],[null,null,null,null,null,null,null,null,null,null],[null,null,null,null,null,null,null,null,null,null],[null,null,null,null,null,null,null,null,null,null],[null,null,null,null,null,null,null,null,null,null],[null,null,null,null,null,null,null,null,null,null],[null,null,null,null,null,null,null,null,null,null],[null,null,null,null,null,null,null,null,null,null]],"row_label":"x index","col_label":"y index","cursor":[0,9]},"value":11.94,"value_label":"prefix cost"},{"phase":1,"caption":"Extend solved prefixes using the stated recurrence","panel":{"kind":"matrix","title":"Accumulated edit costs","z":[[0.12,0.92,1.7000000000000002,3.04,5.0,6.140000000000001,7.540000000000001,9.32,10.84,11.94],[0.88,0.36,1.1400000000000001,2.48,4.4399999999999995,5.58,6.98,8.76,10.28,11.379999999999999],[null,null,null,null,null,null,null,null,null,null],[null,null,null,null,null,null,null,null,null,null],[null,null,null,null,null,null,null,null,null,null],[null,null,null,null,null,null,null,null,null,null],[null,null,null,null,null,null,null,null,null,null],[null,null,null,null,null,null,null,null,null,null],[null,null,null,null,null,null,null,null,null,null],[null,null,null,null,null,null,null,null,null,null]],"row_label":"x index","col_label":"y index","cursor":[1,9]},"value":11.379999999999999,"value_label":"prefix cost"},{"phase":1,"caption":"Extend solved prefixes using the stated recurrence","panel":{"kind":"matrix","title":"Accumulated edit costs","z":[[0.12,0.92,1.7000000000000002,3.04,5.0,6.140000000000001,7.540000000000001,9.32,10.84,11.94],[0.88,0.36,1.1400000000000001,2.48,4.4399999999999995,5.58,6.98,8.76,10.28,11.379999999999999],[2.2,1.6800000000000002,1.1,1.7599999999999998,3.7199999999999998,4.859999999999999,6.26,8.04,9.559999999999999,10.659999999999998],[null,null,null,null,null,null,null,null,null,null],[null,null,null,null,null,null,null,null,null,null],[null,null,null,null,null,null,null,null,null,null],[null,null,null,null,null,null,null,null,null,null],[null,null,null,null,null,null,null,null,null,null],[null,null,null,null,null,null,null,null,null,null],[null,null,null,null,null,null,null,null,null,null]],"row_label":"x index","col_label":"y index","cursor":[2,9]},"value":10.659999999999998,"value_label":"prefix cost"},{"phase":1,"caption":"Extend solved prefixes using the stated recurrence","panel":{"kind":"matrix","title":"Accumulated edit costs","z":[[0.12,0.92,1.7000000000000002,3.04,5.0,6.140000000000001,7.540000000000001,9.32,10.84,11.94],[0.88,0.36,1.1400000000000001,2.48,4.4399999999999995,5.58,6.98,8.76,10.28,11.379999999999999],[2.2,1.6800000000000002,1.1,1.7599999999999998,3.7199999999999998,4.859999999999999,6.26,8.04,9.559999999999999,10.659999999999998],[4.08,3.56,2.98,2.96,2.4799999999999995,3.6199999999999997,5.02,6.799999999999999,8.319999999999999,9.419999999999998],[null,null,null,null,null,null,null,null,null,null],[null,null,null,null,null,null,null,null,null,null],[null,null,null,null,null,null,null,null,null,null],[null,null,null,null,null,null,null,null,null,null],[null,null,null,null,null,null,null,null,null,null],[null,null,null,null,null,null,null,null,null,null]],"row_label":"x index","col_label":"y index","cursor":[3,9]},"value":9.419999999999998,"value_label":"prefix cost"},{"phase":1,"caption":"Extend solved prefixes using the stated recurrence","panel":{"kind":"matrix","title":"Accumulated edit costs","z":[[0.12,0.92,1.7000000000000002,3.04,5.0,6.140000000000001,7.540000000000001,9.32,10.84,11.94],[0.88,0.36,1.1400000000000001,2.48,4.4399999999999995,5.58,6.98,8.76,10.28,11.379999999999999],[2.2,1.6800000000000002,1.1,1.7599999999999998,3.7199999999999998,4.859999999999999,6.26,8.04,9.559999999999999,10.659999999999998],[4.08,3.56,2.98,2.96,2.4799999999999995,3.6199999999999997,5.02,6.799999999999999,8.319999999999999,9.419999999999998],[5.5200000000000005,5.0,4.42,4.4,3.92,3.1799999999999997,4.58,6.359999999999999,7.879999999999999,8.979999999999999],[null,null,null,null,null,null,null,null,null,null],[null,null,null,null,null,null,null,null,null,null],[null,null,null,null,null,null,null,null,null,null],[null,null,null,null,null,null,null,null,null,null],[null,null,null,null,null,null,null,null,null,null]],"row_label":"x index","col_label":"y index","cursor":[4,9]},"value":8.979999999999999,"value_label":"prefix cost"},{"phase":1,"caption":"Extend solved prefixes using the stated recurrence","panel":{"kind":"matrix","title":"Accumulated edit costs","z":[[0.12,0.92,1.7000000000000002,3.04,5.0,6.140000000000001,7.540000000000001,9.32,10.84,11.94],[0.88,0.36,1.1400000000000001,2.48,4.4399999999999995,5.58,6.98,8.76,10.28,11.379999999999999],[2.2,1.6800000000000002,1.1,1.7599999999999998,3.7199999999999998,4.859999999999999,6.26,8.04,9.559999999999999,10.659999999999998],[4.08,3.56,2.98,2.96,2.4799999999999995,3.6199999999999997,5.02,6.799999999999999,8.319999999999999,9.419999999999998],[5.5200000000000005,5.0,4.42,4.4,3.92,3.1799999999999997,4.58,6.359999999999999,7.879999999999999,8.979999999999999],[6.82,6.300000000000001,5.720000000000001,5.700000000000001,5.220000000000001,4.48,3.88,5.66,7.18,8.28],[null,null,null,null,null,null,null,null,null,null],[null,null,null,null,null,null,null,null,null,null],[null,null,null,null,null,null,null,null,null,null],[null,null,null,null,null,null,null,null,null,null]],"row_label":"x index","col_label":"y index","cursor":[5,9]},"value":8.28,"value_label":"prefix cost"},{"phase":1,"caption":"Extend solved prefixes using the stated recurrence","panel":{"kind":"matrix","title":"Accumulated edit costs","z":[[0.12,0.92,1.7000000000000002,3.04,5.0,6.140000000000001,7.540000000000001,9.32,10.84,11.94],[0.88,0.36,1.1400000000000001,2.48,4.4399999999999995,5.58,6.98,8.76,10.28,11.379999999999999],[2.2,1.6800000000000002,1.1,1.7599999999999998,3.7199999999999998,4.859999999999999,6.26,8.04,9.559999999999999,10.659999999999998],[4.08,3.56,2.98,2.96,2.4799999999999995,3.6199999999999997,5.02,6.799999999999999,8.319999999999999,9.419999999999998],[5.5200000000000005,5.0,4.42,4.4,3.92,3.1799999999999997,4.58,6.359999999999999,7.879999999999999,8.979999999999999],[6.82,6.300000000000001,5.720000000000001,5.700000000000001,5.220000000000001,4.48,3.88,5.66,7.18,8.28],[8.68,8.16,7.58,7.5600000000000005,7.08,6.34,5.74,4.6,6.119999999999999,7.219999999999999],[null,null,null,null,null,null,null,null,null,null],[null,null,null,null,null,null,null,null,null,null],[null,null,null,null,null,null,null,null,null,null]],"row_label":"x index","col_label":"y index","cursor":[6,9]},"value":7.219999999999999,"value_label":"prefix cost"},{"phase":1,"caption":"Extend solved prefixes using the stated recurrence","panel":{"kind":"matrix","title":"Accumulated edit costs","z":[[0.12,0.92,1.7000000000000002,3.04,5.0,6.140000000000001,7.540000000000001,9.32,10.84,11.94],[0.88,0.36,1.1400000000000001,2.48,4.4399999999999995,5.58,6.98,8.76,10.28,11.379999999999999],[2.2,1.6800000000000002,1.1,1.7599999999999998,3.7199999999999998,4.859999999999999,6.26,8.04,9.559999999999999,10.659999999999998],[4.08,3.56,2.98,2.96,2.4799999999999995,3.6199999999999997,5.02,6.799999999999999,8.319999999999999,9.419999999999998],[5.5200000000000005,5.0,4.42,4.4,3.92,3.1799999999999997,4.58,6.359999999999999,7.879999999999999,8.979999999999999],[6.82,6.300000000000001,5.720000000000001,5.700000000000001,5.220000000000001,4.48,3.88,5.66,7.18,8.28],[8.68,8.16,7.58,7.5600000000000005,7.08,6.34,5.74,4.6,6.119999999999999,7.219999999999999],[10.219999999999999,9.7,9.120000000000001,9.100000000000001,8.620000000000001,7.88,7.28,6.14,5.22,6.32],[null,null,null,null,null,null,null,null,null,null],[null,null,null,null,null,null,null,null,null,null]],"row_label":"x index","col_label":"y index","cursor":[7,9]},"value":6.32,"value_label":"prefix cost"},{"phase":1,"caption":"Extend solved prefixes using the stated recurrence","panel":{"kind":"matrix","title":"Accumulated edit costs","z":[[0.12,0.92,1.7000000000000002,3.04,5.0,6.140000000000001,7.540000000000001,9.32,10.84,11.94],[0.88,0.36,1.1400000000000001,2.48,4.4399999999999995,5.58,6.98,8.76,10.28,11.379999999999999],[2.2,1.6800000000000002,1.1,1.7599999999999998,3.7199999999999998,4.859999999999999,6.26,8.04,9.559999999999999,10.659999999999998],[4.08,3.56,2.98,2.96,2.4799999999999995,3.6199999999999997,5.02,6.799999999999999,8.319999999999999,9.419999999999998],[5.5200000000000005,5.0,4.42,4.4,3.92,3.1799999999999997,4.58,6.359999999999999,7.879999999999999,8.979999999999999],[6.82,6.300000000000001,5.720000000000001,5.700000000000001,5.220000000000001,4.48,3.88,5.66,7.18,8.28],[8.68,8.16,7.58,7.5600000000000005,7.08,6.34,5.74,4.6,6.119999999999999,7.219999999999999],[10.219999999999999,9.7,9.120000000000001,9.100000000000001,8.620000000000001,7.88,7.28,6.14,5.22,6.32],[11.52,11.0,10.420000000000002,10.400000000000002,9.920000000000002,9.18,8.58,7.4399999999999995,6.52,5.82],[null,null,null,null,null,null,null,null,null,null]],"row_label":"x index","col_label":"y index","cursor":[8,9]},"value":5.82,"value_label":"prefix cost"},{"phase":1,"caption":"Extend solved prefixes using the stated recurrence","panel":{"kind":"matrix","title":"Accumulated edit costs","z":[[0.12,0.92,1.7000000000000002,3.04,5.0,6.140000000000001,7.540000000000001,9.32,10.84,11.94],[0.88,0.36,1.1400000000000001,2.48,4.4399999999999995,5.58,6.98,8.76,10.28,11.379999999999999],[2.2,1.6800000000000002,1.1,1.7599999999999998,3.7199999999999998,4.859999999999999,6.26,8.04,9.559999999999999,10.659999999999998],[4.08,3.56,2.98,2.96,2.4799999999999995,3.6199999999999997,5.02,6.799999999999999,8.319999999999999,9.419999999999998],[5.5200000000000005,5.0,4.42,4.4,3.92,3.1799999999999997,4.58,6.359999999999999,7.879999999999999,8.979999999999999],[6.82,6.300000000000001,5.720000000000001,5.700000000000001,5.220000000000001,4.48,3.88,5.66,7.18,8.28],[8.68,8.16,7.58,7.5600000000000005,7.08,6.34,5.74,4.6,6.119999999999999,7.219999999999999],[10.219999999999999,9.7,9.120000000000001,9.100000000000001,8.620000000000001,7.88,7.28,6.14,5.22,6.32],[11.52,11.0,10.420000000000002,10.400000000000002,9.920000000000002,9.18,8.58,7.4399999999999995,6.52,5.82],[12.4,11.88,11.300000000000002,11.280000000000003,10.800000000000002,10.06,9.46,8.32,7.3999999999999995,6.7]],"row_label":"x index","col_label":"y index","cursor":[9,9]},"value":6.7,"value_label":"prefix cost"},{"phase":2,"caption":"Follow the chosen predecessor decisions","panel":{"kind":"matrix","title":"Accumulated edit costs","z":[[0.12,0.92,1.7000000000000002,3.04,5.0,6.140000000000001,7.540000000000001,9.32,10.84,11.94],[0.88,0.36,1.1400000000000001,2.48,4.4399999999999995,5.58,6.98,8.76,10.28,11.379999999999999],[2.2,1.6800000000000002,1.1,1.7599999999999998,3.7199999999999998,4.859999999999999,6.26,8.04,9.559999999999999,10.659999999999998],[4.08,3.56,2.98,2.96,2.4799999999999995,3.6199999999999997,5.02,6.799999999999999,8.319999999999999,9.419999999999998],[5.5200000000000005,5.0,4.42,4.4,3.92,3.1799999999999997,4.58,6.359999999999999,7.879999999999999,8.979999999999999],[6.82,6.300000000000001,5.720000000000001,5.700000000000001,5.220000000000001,4.48,3.88,5.66,7.18,8.28],[8.68,8.16,7.58,7.5600000000000005,7.08,6.34,5.74,4.6,6.119999999999999,7.219999999999999],[10.219999999999999,9.7,9.120000000000001,9.100000000000001,8.620000000000001,7.88,7.28,6.14,5.22,6.32],[11.52,11.0,10.420000000000002,10.400000000000002,9.920000000000002,9.18,8.58,7.4399999999999995,6.52,5.82],[12.4,11.88,11.300000000000002,11.280000000000003,10.800000000000002,10.06,9.46,8.32,7.3999999999999995,6.7]],"row_label":"x index","col_label":"y index","path":[[7,8],[8,9],[9,9]]},"value":6.7,"value_label":"distance"},{"phase":2,"caption":"Follow the chosen predecessor decisions","panel":{"kind":"matrix","title":"Accumulated edit costs","z":[[0.12,0.92,1.7000000000000002,3.04,5.0,6.140000000000001,7.540000000000001,9.32,10.84,11.94],[0.88,0.36,1.1400000000000001,2.48,4.4399999999999995,5.58,6.98,8.76,10.28,11.379999999999999],[2.2,1.6800000000000002,1.1,1.7599999999999998,3.7199999999999998,4.859999999999999,6.26,8.04,9.559999999999999,10.659999999999998],[4.08,3.56,2.98,2.96,2.4799999999999995,3.6199999999999997,5.02,6.799999999999999,8.319999999999999,9.419999999999998],[5.5200000000000005,5.0,4.42,4.4,3.92,3.1799999999999997,4.58,6.359999999999999,7.879999999999999,8.979999999999999],[6.82,6.300000000000001,5.720000000000001,5.700000000000001,5.220000000000001,4.48,3.88,5.66,7.18,8.28],[8.68,8.16,7.58,7.5600000000000005,7.08,6.34,5.74,4.6,6.119999999999999,7.219999999999999],[10.219999999999999,9.7,9.120000000000001,9.100000000000001,8.620000000000001,7.88,7.28,6.14,5.22,6.32],[11.52,11.0,10.420000000000002,10.400000000000002,9.920000000000002,9.18,8.58,7.4399999999999995,6.52,5.82],[12.4,11.88,11.300000000000002,11.280000000000003,10.800000000000002,10.06,9.46,8.32,7.3999999999999995,6.7]],"row_label":"x index","col_label":"y index","path":[[5,6],[6,7],[7,8],[8,9],[9,9]]},"value":6.7,"value_label":"distance"},{"phase":2,"caption":"Follow the chosen predecessor decisions","panel":{"kind":"matrix","title":"Accumulated edit costs","z":[[0.12,0.92,1.7000000000000002,3.04,5.0,6.140000000000001,7.540000000000001,9.32,10.84,11.94],[0.88,0.36,1.1400000000000001,2.48,4.4399999999999995,5.58,6.98,8.76,10.28,11.379999999999999],[2.2,1.6800000000000002,1.1,1.7599999999999998,3.7199999999999998,4.859999999999999,6.26,8.04,9.559999999999999,10.659999999999998],[4.08,3.56,2.98,2.96,2.4799999999999995,3.6199999999999997,5.02,6.799999999999999,8.319999999999999,9.419999999999998],[5.5200000000000005,5.0,4.42,4.4,3.92,3.1799999999999997,4.58,6.359999999999999,7.879999999999999,8.979999999999999],[6.82,6.300000000000001,5.720000000000001,5.700000000000001,5.220000000000001,4.48,3.88,5.66,7.18,8.28],[8.68,8.16,7.58,7.5600000000000005,7.08,6.34,5.74,4.6,6.119999999999999,7.219999999999999],[10.219999999999999,9.7,9.120000000000001,9.100000000000001,8.620000000000001,7.88,7.28,6.14,5.22,6.32],[11.52,11.0,10.420000000000002,10.400000000000002,9.920000000000002,9.18,8.58,7.4399999999999995,6.52,5.82],[12.4,11.88,11.300000000000002,11.280000000000003,10.800000000000002,10.06,9.46,8.32,7.3999999999999995,6.7]],"row_label":"x index","col_label":"y index","path":[[3,4],[4,5],[5,6],[6,7],[7,8],[8,9],[9,9]]},"value":6.7,"value_label":"distance"},{"phase":2,"caption":"Follow the chosen predecessor decisions","panel":{"kind":"matrix","title":"Accumulated edit costs","z":[[0.12,0.92,1.7000000000000002,3.04,5.0,6.140000000000001,7.540000000000001,9.32,10.84,11.94],[0.88,0.36,1.1400000000000001,2.48,4.4399999999999995,5.58,6.98,8.76,10.28,11.379999999999999],[2.2,1.6800000000000002,1.1,1.7599999999999998,3.7199999999999998,4.859999999999999,6.26,8.04,9.559999999999999,10.659999999999998],[4.08,3.56,2.98,2.96,2.4799999999999995,3.6199999999999997,5.02,6.799999999999999,8.319999999999999,9.419999999999998],[5.5200000000000005,5.0,4.42,4.4,3.92,3.1799999999999997,4.58,6.359999999999999,7.879999999999999,8.979999999999999],[6.82,6.300000000000001,5.720000000000001,5.700000000000001,5.220000000000001,4.48,3.88,5.66,7.18,8.28],[8.68,8.16,7.58,7.5600000000000005,7.08,6.34,5.74,4.6,6.119999999999999,7.219999999999999],[10.219999999999999,9.7,9.120000000000001,9.100000000000001,8.620000000000001,7.88,7.28,6.14,5.22,6.32],[11.52,11.0,10.420000000000002,10.400000000000002,9.920000000000002,9.18,8.58,7.4399999999999995,6.52,5.82],[12.4,11.88,11.300000000000002,11.280000000000003,10.800000000000002,10.06,9.46,8.32,7.3999999999999995,6.7]],"row_label":"x index","col_label":"y index","path":[[1,2],[2,3],[3,4],[4,5],[5,6],[6,7],[7,8],[8,9],[9,9]]},"value":6.7,"value_label":"distance"},{"phase":2,"caption":"Follow the chosen predecessor decisions","panel":{"kind":"matrix","title":"Accumulated edit costs","z":[[0.12,0.92,1.7000000000000002,3.04,5.0,6.140000000000001,7.540000000000001,9.32,10.84,11.94],[0.88,0.36,1.1400000000000001,2.48,4.4399999999999995,5.58,6.98,8.76,10.28,11.379999999999999],[2.2,1.6800000000000002,1.1,1.7599999999999998,3.7199999999999998,4.859999999999999,6.26,8.04,9.559999999999999,10.659999999999998],[4.08,3.56,2.98,2.96,2.4799999999999995,3.6199999999999997,5.02,6.799999999999999,8.319999999999999,9.419999999999998],[5.5200000000000005,5.0,4.42,4.4,3.92,3.1799999999999997,4.58,6.359999999999999,7.879999999999999,8.979999999999999],[6.82,6.300000000000001,5.720000000000001,5.700000000000001,5.220000000000001,4.48,3.88,5.66,7.18,8.28],[8.68,8.16,7.58,7.5600000000000005,7.08,6.34,5.74,4.6,6.119999999999999,7.219999999999999],[10.219999999999999,9.7,9.120000000000001,9.100000000000001,8.620000000000001,7.88,7.28,6.14,5.22,6.32],[11.52,11.0,10.420000000000002,10.400000000000002,9.920000000000002,9.18,8.58,7.4399999999999995,6.52,5.82],[12.4,11.88,11.300000000000002,11.280000000000003,10.800000000000002,10.06,9.46,8.32,7.3999999999999995,6.7]],"row_label":"x index","col_label":"y index","path":[[0,0],[1,1],[1,2],[2,3],[3,4],[4,5],[5,6],[6,7],[7,8],[8,9],[9,9]]},"value":6.7,"value_label":"distance"},{"phase":3,"caption":"Inspect the selected correspondences and final score","panel":{"kind":"alignment","title":"Chosen pairs (gaps remain unlinked)","a":[0.2,0.4,1.1,2.4,3.2,2.5,1.2,0.3,-0.4,-0.1],"b":[0.1,0.3,0.5,1.2,2.6,3.1,2.3,1.1,0.2,-0.3],"pairs":[[0,0],[1,1],[2,3],[3,4],[4,5],[5,6],[6,7],[7,8],[8,9]]},"value":6.7,"value_label":"distance"}],"checks":{"api":"echotime.similarity_methods.twed_distance","expected":6.7,"observed":6.699999999999998,"tolerance":1e-12},"animation_steps_en":["Keep explicit timestamps and the common zero-time sentinel.","Combine current, previous, time and deletion costs.","Trace minimum-cost operations from infinite leading boundaries.","Read TWED with lambda 0.4 and stiffness 0.2."],"echotime_status":"Implemented in EchoTime","echotime_api":"twed_distance"}
