Mercurial > hg > nsaunier > traffic-intelligence
comparison trafficintelligence/indicators.py @ 1240:bb14f919d1cb
cleaned use of centile (np only) and added info in classify-objects
| author | Nicolas Saunier <nicolas.saunier@polymtl.ca> |
|---|---|
| date | Mon, 05 Feb 2024 14:14:14 -0500 |
| parents | 6baa915dd8bd |
| children | 56d0195d043e |
comparison
equal
deleted
inserted
replaced
| 1239:31173c4699d2 | 1240:bb14f919d1cb |
|---|---|
| 1 #! /usr/bin/env python | 1 #! /usr/bin/env python |
| 2 '''Class for indicators, temporal indicators, and safety indicators''' | 2 '''Class for indicators, temporal indicators, and safety indicators''' |
| 3 | 3 |
| 4 from matplotlib.pyplot import plot, ylim | 4 from matplotlib.pyplot import plot, ylim |
| 5 from numpy import array, arange, mean, floor, mean | 5 from numpy import array, arange, mean, floor, mean, percentile |
| 6 from scipy import percentile | |
| 7 | 6 |
| 8 from trafficintelligence import moving | 7 from trafficintelligence import moving |
| 9 from trafficintelligence.utils import LCSS as utilsLCSS | 8 from trafficintelligence.utils import LCSS as utilsLCSS |
| 10 | 9 |
| 11 def multivariateName(indicatorNames): | 10 def multivariateName(indicatorNames): |
