Mercurial Hosting > traffic-intelligence
comparison python/tests/extrapolation.txt @ 255:13ec22bec5d4
corrected typos and bugs and added a test
author | Nicolas Saunier <nicolas.saunier@polymtl.ca> |
---|---|
date | Mon, 23 Jul 2012 23:07:19 -0400 |
parents | |
children | dc1faa7287bd |
comparison
equal
deleted
inserted
replaced
254:4b71e81e3383 | 255:13ec22bec5d4 |
---|---|
1 >>> import extrapolation | |
2 >>> import moving | |
3 | |
4 >>> et = extrapolation.ExtrapolatedTrajectoryConstant(moving.Point(0,0), moving.Point(1,0)) | |
5 >>> et.predictPosition(4) # doctest:+ELLIPSIS | |
6 (0.0...,4.0...) | |
7 >>> et.predictPosition(1) # doctest:+ELLIPSIS | |
8 (0.0...,1.0...) |