#[non_exhaustive]pub struct RecognitionWork {
pub attempts: usize,
pub rounds: usize,
pub exhausted: bool,
pub seeded_components: usize,
pub hypotheses_by_kind: [usize; 5],
pub stops_at_risk_bound: usize,
pub stops_at_hypothesis_cap: usize,
pub stops_at_seed_exhaustion: usize,
pub stops_at_budget: usize,
}Expand description
Work spent by recognize_surfaces_with_attempt_budget.
Non-exhaustive: a later counter is not a breaking change.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.attempts: usizeGeneric hypotheses drawn, over every extraction round of every connected component.
rounds: usizeRegions accepted by generic extraction.
exhausted: boolWhether the budget ran out before extraction finished. The regions are then those accepted before the budget ran out (the round in progress is dropped), so they are a prefix of the unbudgeted run’s.
seeded_components: usizeConnected components accepted whole on a supplied
ComponentCandidate after their own whole fit was refused.
hypotheses_by_kind: [usize; 5]Generic hypotheses drawn per primitive kind, in the recognizer’s kind order (plane, sphere, cylinder, cone, torus).
stops_at_risk_bound: usizeExtraction rounds that stopped because every kind’s miss bound fell
to 1 - confidence (the classical seed bound, or the adaptive
policy’s product bound).
stops_at_hypothesis_cap: usizeExtraction rounds that stopped at max_hypotheses (or at one draw per
remaining triangle per kind, when that is smaller) with the bound not
yet met.
stops_at_seed_exhaustion: usizeExtraction rounds of the adaptive policy that stopped because every remaining triangle had seeded every kind.
stops_at_budget: usizeExtraction rounds cut short by the attempt budget; the round’s
candidates are dropped and exhausted is set.