Mercurial Hosting > traffic-intelligence
diff python/tests/prediction.txt @ 289:e56c34c1ebac
refactored and commented functions (saving data is now outside of the computation functions)
author | Nicolas Saunier <nicolas.saunier@polymtl.ca> |
---|---|
date | Tue, 29 Jan 2013 11:21:42 -0500 |
parents | bbd9c09e6869 |
children | e891a41c6c75 |
line wrap: on
line diff
--- a/python/tests/prediction.txt Tue Jan 29 10:36:17 2013 -0500 +++ b/python/tests/prediction.txt Tue Jan 29 11:21:42 2013 -0500 @@ -23,3 +23,8 @@ >>> from numpy import max >>> max(et.getPredictedSpeeds()) <= 2. True + +>>> p = moving.Point(3,4) +>>> sp = prediction.SafetyPoint(p, 0.1, 0) +>>> print(sp) +3 4 0.1 0