Mercurial Hosting > traffic-intelligence
diff python/tests/moving.txt @ 1018:d7afc59f6966
work in progress
author | Nicolas Saunier <nicolas.saunier@polymtl.ca> |
---|---|
date | Mon, 04 Jun 2018 17:46:52 -0400 |
parents | 933670761a57 |
children | 5d2f6afae35b |
line wrap: on
line diff
--- a/python/tests/moving.txt Mon Jun 04 17:42:35 2018 -0400 +++ b/python/tests/moving.txt Mon Jun 04 17:46:52 2018 -0400 @@ -199,6 +199,10 @@ >>> t.differentiate().empty() True +>>> o1 = MovingObject.generate(1, Point(1., 2.), Point(1., 1.), TimeInterval(0,10)) +>>> o2 = MovingObject.generate(2, Point(14., 14.), Point(1., 0.), TimeInterval(14,20)) + + >>> o1 = MovingObject.generate(1, Point(0., 2.), Point(0., 1.), TimeInterval(0,2)) >>> o1.classifyUserTypeSpeedMotorized(0.5, np.median) >>> userTypeNames[o1.getUserType()]