diff python/tests/prediction.txt @ 945:05d4302bf67e

working motion pattern prediction with rotation and features
author Nicolas Saunier <nicolas.saunier@polymtl.ca>
date Thu, 20 Jul 2017 14:29:46 -0400
parents ab13aaf41432
children 933670761a57
line wrap: on
line diff
--- a/python/tests/prediction.txt	Thu Jul 20 12:12:28 2017 -0400
+++ b/python/tests/prediction.txt	Thu Jul 20 14:29:46 2017 -0400
@@ -54,7 +54,7 @@
 >>> for t in xrange(int(proto.length())): x=et.predictPosition(t)
 >>> traj = et.getPredictedTrajectory()
 >>> traj.computeCumulativeDistances()
->>> (absolute(array(traj.distances) - et.initialSpeed) < 1e-5).all()
+>>> absolute(array(traj.distances).mean() - et.initialSpeed < 1e-3)
 True
 
 >>> et = PredictedTrajectoryPrototype(proto.getPositionAt(10)+moving.Point(0.6, 0.6), proto.getVelocityAt(10)*0.7, proto, False)