telemetry aggregation: edge case
telemetry aggregation: edge case: a task in smol-software-harbor (Harbor dataset). percentile() in telemetry/stats.py is off by one: the median of 1..10 comes out as 6 and p100 crashes with IndexError . Implement the nearest-rank definition from its docstring (rank = ceil(p/100 n), at least 1…
The task
`percentile()` in `telemetry/stats.py` is off by one: the median of 1..10 comes out as 6 and `p100` crashes with `IndexError`. Implement the nearest-rank definition from its docstring (rank = ceil(p/100 * n), at least 1, then take the rank-th smallest value). Run `python3 -m pytest -q`.
Part of efederici/smol-software-harbor.