bisect_axis

Function bisect_axis 

Source
pub fn bisect_axis(
    base: &ResolvedSolveRequestV1,
    axis: InputAxis,
    range_m: f64,
    domain: (f64, f64),
    predicate: &dyn Fn(&Observation) -> bool,
    tolerance: f64,
) -> Result<Option<f64>, KernelError>
Expand description

Bisect axis over domain at a single range_m until predicate (evaluated on the observation at that range) changes truth value, to within tolerance. See the module doc’s “Bisection contract” for what None means and what predicate must satisfy.

§Errors