diff trafficintelligence/moving.py @ 1133:c4d9c270f999

modification for performance computation
author Nicolas Saunier <nicolas.saunier@polymtl.ca>
date Wed, 26 Feb 2020 22:39:36 -0500
parents 09ef0dc994a0
children 4b2a55d570c1
line wrap: on
line diff
--- a/trafficintelligence/moving.py	Wed Feb 26 22:32:39 2020 -0500
+++ b/trafficintelligence/moving.py	Wed Feb 26 22:39:36 2020 -0500
@@ -2034,7 +2034,7 @@
         nTOs = len(matchedTOs)+len(unmatchedTOs)
         if len(unmatchedTOs) > 0:
             for a in unmatchedGTs:
-                costs.append([a.matches(o, t, matchingDistance) for o in unmatchedTOs])
+                costs.append([a.motDistanceAtInstant(o, t) for o in unmatchedTOs])
         if len(costs) > 0:
             newMatches = munk.compute(costs)
             for k,v in newMatches: