pub(crate) fn bracket(nodes: &[f64], x: f64) -> (usize, usize, f64)
Linear weights of x over nodes, flat outside: (lo, hi, w) with the value v[lo]·(1 − w) + v[hi]·w.
x
nodes
(lo, hi, w)
v[lo]·(1 − w) + v[hi]·w