Mercurial > hg > nsaunier > traffic-intelligence
comparison trafficintelligence/tests/indicators.txt @ 1030:aafbc0bab925
moved method around to avoid cross-dependencies
| author | Nicolas Saunier <nicolas.saunier@polymtl.ca> |
|---|---|
| date | Tue, 19 Jun 2018 10:04:52 -0400 |
| parents | cc5cb04b04b0 |
| children | b1ba6d44fcb9 |
comparison
equal
deleted
inserted
replaced
| 1029:c6cf75a2ed08 | 1030:aafbc0bab925 |
|---|---|
| 1 >>> from indicators import * | 1 >>> from trafficintelligence.indicators import * |
| 2 >>> from moving import TimeInterval,Trajectory | 2 >>> from trafficintelligence.moving import TimeInterval,Trajectory |
| 3 | 3 |
| 4 >>> indic1 = TemporalIndicator('bla', [0,3,-4], TimeInterval(4,6)) | 4 >>> indic1 = TemporalIndicator('bla', [0,3,-4], TimeInterval(4,6)) |
| 5 >>> indic1.empty() | 5 >>> indic1.empty() |
| 6 False | 6 False |
| 7 >>> indic1.getIthValue(1) | 7 >>> indic1.getIthValue(1) |
