diff python/tests/utils.txt @ 374:a7af3519687e

finished implementation of aligned LCSS with matching sequence decoded
author Nicolas Saunier <nicolas.saunier@polymtl.ca>
date Wed, 17 Jul 2013 00:50:44 -0400
parents 027e254f0b53
children abe0b2347d4c
line wrap: on
line diff
--- a/python/tests/utils.txt	Tue Jul 16 17:45:07 2013 -0400
+++ b/python/tests/utils.txt	Wed Jul 17 00:50:44 2013 -0400
@@ -106,3 +106,8 @@
 >>> lcss.delta = 10
 >>> alignedLcss.compute(range(1,7), range(6))
 5
+>>> lcss = LCSS(lambda x,y: x == y, delta = 2, aligned = True)
+>>> lcss.compute(range(20), [2,4,6,7,8,9,11,13], True)
+8
+>>> lcss.subSequenceIndices
+[(2, 0), (4, 1), (6, 2), (7, 3), (8, 4), (9, 5), (11, 6), (13, 7)]