comparison 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
comparison
equal deleted inserted replaced
373:d0b86ed50f32 374:a7af3519687e
104 >>> alignedLcss.compute(range(5), range(6)) 104 >>> alignedLcss.compute(range(5), range(6))
105 5 105 5
106 >>> lcss.delta = 10 106 >>> lcss.delta = 10
107 >>> alignedLcss.compute(range(1,7), range(6)) 107 >>> alignedLcss.compute(range(1,7), range(6))
108 5 108 5
109 >>> lcss = LCSS(lambda x,y: x == y, delta = 2, aligned = True)
110 >>> lcss.compute(range(20), [2,4,6,7,8,9,11,13], True)
111 8
112 >>> lcss.subSequenceIndices
113 [(2, 0), (4, 1), (6, 2), (7, 3), (8, 4), (9, 5), (11, 6), (13, 7)]