diff trafficintelligence/utils.py @ 1086:8734742c08c0

major refactoring of curvilinear trajectory projections
author Nicolas Saunier <nicolas.saunier@polymtl.ca>
date Tue, 16 Oct 2018 12:46:29 -0400
parents c04550f957ab
children 0680387a89bb
line wrap: on
line diff
--- a/trafficintelligence/utils.py	Tue Sep 25 17:08:37 2018 -0400
+++ b/trafficintelligence/utils.py	Tue Oct 16 12:46:29 2018 -0400
@@ -384,7 +384,7 @@
 def crossProduct(l1, l2):
     return l1[0]*l2[1]-l1[1]*l2[0]
 
-def cat_mvgavg(cat_list, halfWidth):
+def filterCategoricalMovingWindow(cat_list, halfWidth):
     ''' Return a list of categories/values smoothed according to a window. 
         halfWidth is the search radius on either side'''
     smoothed = deepcopy(cat_list)