Skip to main content

safety_margin

Function safety_margin 

Source
pub fn safety_margin(budget_remaining: f64, change_rate: f64) -> f64
Expand description

Margin of safety: how far inside the safe region the current state is.

Returns the barrier value directly — higher is safer, zero is the boundary, negative means degradation territory.