Mercurial Hosting > traffic-intelligence
comparison python/prediction.py @ 357:e5fe0e6d48a1
corrected bug computing TTC (resp. pPET) if there is no collision point (resp. crossing zone)
author | Nicolas Saunier <nicolas.saunier@polymtl.ca> |
---|---|
date | Thu, 11 Jul 2013 00:07:47 -0400 |
parents | 41e31d8c4383 |
children | c41ff9f3c263 |
comparison
equal
deleted
inserted
replaced
356:15fac9c45feb | 357:e5fe0e6d48a1 |
---|---|
304 title('instant {0}'.format(i)) | 304 title('instant {0}'.format(i)) |
305 axis('equal') | 305 axis('equal') |
306 | 306 |
307 return collisionProbabilities | 307 return collisionProbabilities |
308 | 308 |
309 #### | |
310 # Other Methods | |
311 #### | |
312 | |
313 | |
314 | |
315 | |
309 | 316 |
310 if __name__ == "__main__": | 317 if __name__ == "__main__": |
311 import doctest | 318 import doctest |
312 import unittest | 319 import unittest |
313 suite = doctest.DocFileSuite('tests/prediction.txt') | 320 suite = doctest.DocFileSuite('tests/prediction.txt') |