pub fn buf(x: f64) -> f64
1 if x > 0.5, else 0 — a threshold/buffer, the companion to inv.
1
x > 0.5
0
inv