pm25ToAqi

fun pm25ToAqi(concentration: Double): Int(source)

Converts a PM2.5 concentration (µg/m³) to a 0-500 EPA AQI value via linear interpolation over the standard breakpoint table. Concentrations above the top breakpoint are clamped to AQI 500.