Skip to main content

bracket

Function bracket 

pub(crate) fn bracket(nodes: &[f64], x: f64) -> (usize, usize, f64)
Expand description

Linear weights of x over nodes, flat outside: (lo, hi, w) with the value v[lo]·(1 − w) + v[hi]·w.