mutual_nearest_pairs

Function mutual_nearest_pairs 

Source
pub fn mutual_nearest_pairs(
    base: &[[f64; 3]],
    head: &[[f64; 3]],
    max_distance: f64,
    accept: impl Fn(usize, usize) -> bool,
    margin_ratio: f64,
) -> Vec<NearestPair>
Expand description

A veto remains in the candidate pool. Exact ties abstain; every successful round retires at least one entity on each side, so termination is bounded.