Mercurial Hosting > traffic-intelligence
diff python/moving.py @ 383:0ce2210790b1
fixed stupid naming bug
author | Nicolas Saunier <nicolas.saunier@polymtl.ca> |
---|---|
date | Mon, 22 Jul 2013 11:46:35 -0400 |
parents | 387cc0142211 |
children | 31604ef1cad4 |
line wrap: on
line diff
--- a/python/moving.py Sun Jul 21 10:23:15 2013 -0400 +++ b/python/moving.py Mon Jul 22 11:46:35 2013 -0400 @@ -524,7 +524,7 @@ '''Indicates whether the minProportion (<=1.) (eg half) of the trajectory elements (vectors for velocity) have a cosine with refDirection is smaller than cosineThreshold''' count = 0 - lengthTreshold = float(self.length())*minProportion + lengthThreshold = float(self.length())*minProportion for p in self: if p.similarOrientation(refDirection, cosineThreshold): count += 1