Mercurial > hg > nsaunier > traffic-intelligence
comparison python/tests/utils.txt @ 285:5957aa1d69e1
Integrating Mohamed's changes
Changed the indicator interface to access values, so that the generic LCSS implementation can be used
| author | Nicolas Saunier <nicolas.saunier@polymtl.ca> |
|---|---|
| date | Sat, 26 Jan 2013 19:02:25 -0500 |
| parents | 74b1fc68d4df |
| children | f6f423e25c7f |
comparison
equal
deleted
inserted
replaced
| 284:f2cf16ad798f | 285:5957aa1d69e1 |
|---|---|
| 38 1.3 | 38 1.3 |
| 39 >>> values[2] #doctest: +ELLIPSIS | 39 >>> values[2] #doctest: +ELLIPSIS |
| 40 71.5... | 40 71.5... |
| 41 >>> values[-1] | 41 >>> values[-1] |
| 42 6.0 | 42 6.0 |
| 43 | |
| 44 >>> LCSS(range(5), range(5), 0.1, lambda x,y:abs(x-y)) | |
| 45 5 | |
| 46 >>> LCSS(range(1,5), range(5), 0.1, lambda x,y:abs(x-y)) | |
| 47 4 | |
| 48 >>> LCSS(range(5,10), range(5), 0.1, lambda x,y:abs(x-y)) | |
| 49 0 | |
| 50 |
