Skip to main content

risk_band

Function risk_band 

pub fn risk_band(risk: f64) -> &'static str
Expand description

Map a structural risk value (0–1, higher = riskier) to its color band.

Returns "red" (risk ≥ 0.55), "yellow" (risk ≥ 0.28), or "green". Used by code_health for the composite structural_risk biomarker.