Mercurial Hosting > traffic-intelligence
changeset 383:0ce2210790b1
fixed stupid naming bug
author | Nicolas Saunier <nicolas.saunier@polymtl.ca> |
---|---|
date | Mon, 22 Jul 2013 11:46:35 -0400 |
parents | ba813f148ade |
children | 6da9cf5609aa |
files | python/moving.py |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
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