traffic monitoring: implement stub
traffic monitoring: implement stub: a task in smol-software-harbor (Harbor dataset). Implement anomalies(counts, threshold=3.0) in anomaly/zscore.py as its docstring describes: indices whose value is more than threshold population standard deviations away from the mean; no anomalies for series…
The task
Implement `anomalies(counts, threshold=3.0)` in `anomaly/zscore.py` as its docstring describes: indices whose value is more than `threshold` population standard deviations away from the mean; no anomalies for series shorter than 2 or with zero deviation. Run `python3 -m pytest -q`.
Part of efederici/smol-software-harbor.