(values, p)
| 195 | } |
| 196 | |
| 197 | function percentile(values, p) { |
| 198 | const s = [...values].sort((x, y) => x - y); |
| 199 | return s[Math.min(s.length - 1, Math.floor((p / 100) * s.length))]; |
| 200 | } |
| 201 | |
| 202 | function run() { |
| 203 | const results = {}; |
no outgoing calls
no test coverage detected
searching dependent graphs…