Mercurial Hosting > traffic-intelligence
comparison python/utils.py @ 686:cdee6a3a47b4 dev
allowing alternate database and filename for classify-objects
author | Nicolas Saunier <nicolas.saunier@polymtl.ca> |
---|---|
date | Tue, 09 Jun 2015 17:29:03 +0200 |
parents | da1352b89d02 |
children | de278c5e65f6 |
comparison
equal
deleted
inserted
replaced
685:94b291a5f933 | 686:cdee6a3a47b4 |
---|---|
622 # sequence section | 622 # sequence section |
623 ######################### | 623 ######################### |
624 | 624 |
625 class LCSS(object): | 625 class LCSS(object): |
626 '''Class that keeps the LCSS parameters | 626 '''Class that keeps the LCSS parameters |
627 and puts together the various computations''' | 627 and puts together the various computations |
628 | |
629 the methods with names starting with _ are not to be shadowed | |
630 in child classes, who will shadow the other methods, | |
631 ie compute and computeXX methods''' | |
628 def __init__(self, similarityFunc, delta = float('inf'), aligned = False, lengthFunc = min): | 632 def __init__(self, similarityFunc, delta = float('inf'), aligned = False, lengthFunc = min): |
629 self.similarityFunc = similarityFunc | 633 self.similarityFunc = similarityFunc |
630 self.aligned = aligned | 634 self.aligned = aligned |
631 self.delta = delta | 635 self.delta = delta |
632 self.lengthFunc = lengthFunc | 636 self.lengthFunc = lengthFunc |