Skip to main content

robust_ranking

Function robust_ranking 

Source
pub fn robust_ranking(
    entry: &MachineEntry,
    cfg: &Config,
    duties: &[(Config, f64)],
    found: &[Candidate],
    top: usize,
) -> (Vec<RobustRow>, bool)
Expand description

The first top passing candidates of a ranked search on cfg judged again at the worst corner of the bounds of their config (analysis::verdict_worst; the bounds follow a part put in, see catalog::set): the rows in the robust order, the ones that pass there first, each group in the order given; and whether that order differs from the one given. With a duty mix (duties, each duty’s config and weight; empty: cfg alone) every duty is judged at its own worst corner and those verdicts are mixed as the search mixes the duties’ own (mix_verdicts), with each duty’s cycle as the search ran it; the runs add up.