(score: number)
| 19 | }; |
| 20 | |
| 21 | function getLevel(score: number): ImpactLevel { |
| 22 | for (const l of IMPACT_LEVELS) { |
| 23 | if (score >= l.min) return l.level; |
| 24 | } |
| 25 | return "info"; |
| 26 | } |
| 27 | |
| 28 | /** Compute percentile ranks for an array of numbers (0-1) */ |
| 29 | function percentileRanks(values: number[]): number[] { |
no outgoing calls
no test coverage detected