diff trafficintelligence/utils.py @ 1222:69b531c7a061

added methods to reset trajectories and change object coordinates (including features)
author Nicolas Saunier <nicolas.saunier@polymtl.ca>
date Tue, 20 Jun 2023 15:42:19 -0400
parents 4356065ed3ca
children 77fbd0e2ba7d
line wrap: on
line diff
--- a/trafficintelligence/utils.py	Mon Jun 19 22:37:45 2023 -0400
+++ b/trafficintelligence/utils.py	Tue Jun 20 15:42:19 2023 -0400
@@ -432,7 +432,7 @@
     return smoothed
 
 def filterMovingWindow(inputSignal, halfWidth, mode = 'valid'):
-    '''Returns an array obtained after the smoothing of the input by a moving average
+    '''Returns an array obtained after the smoothing of the 1-D input by a moving average
     The size of the output depends on the mode: 'full', 'same', 'valid'
     See https://numpy.org/doc/stable/reference/generated/numpy.convolve.html.'''
     width = min(len(inputSignal), int(halfWidth*2+1))