Mercurial > hg > nsaunier > traffic-intelligence
comparison python/indicators.py @ 389:6d26dcc7bba0
modifications to compute alignment for None indicators
| author | Nicolas Saunier <nicolas.saunier@polymtl.ca> |
|---|---|
| date | Thu, 25 Jul 2013 16:01:12 -0400 |
| parents | 2e6b8610bcaa |
| children | 365d8dee44f3 |
comparison
equal
deleted
inserted
replaced
| 388:6e0dedd34920 | 389:6d26dcc7bba0 |
|---|---|
| 130 if self.checkIndicator(indicator1) and self.checkIndicator(indicator2): | 130 if self.checkIndicator(indicator1) and self.checkIndicator(indicator2): |
| 131 return self._computeDistance(indicator1.getValues(), indicator2.getValues(), computeSubSequence) | 131 return self._computeDistance(indicator1.getValues(), indicator2.getValues(), computeSubSequence) |
| 132 else: | 132 else: |
| 133 return 1. | 133 return 1. |
| 134 | 134 |
| 135 | |
| 136 class SeverityIndicator(TemporalIndicator): | 135 class SeverityIndicator(TemporalIndicator): |
| 137 '''Class for severity indicators | 136 '''Class for severity indicators |
| 138 field mostSevereIsMax is True | 137 field mostSevereIsMax is True |
| 139 if the most severe value taken by the indicator is the maximum''' | 138 if the most severe value taken by the indicator is the maximum''' |
| 140 | 139 |
