Function nearest

Source
fn nearest(
    t: f64,
    thr: f64,
    candidates: impl Iterator<Item = f64>,
) -> Option<f64>
Expand description

Nearest candidate within thr of t.