Skip to main content

gate

Function gate 

Source
pub fn gate(
    spec: &VocabularySpace,
    cand: &Candidate,
    score: Option<&FacetScore>,
    threshold: f64,
    round: usize,
) -> GrowEvent
Expand description

Apply the gate to a scored candidate: keep iff gain ≥ threshold, the candidate is wanted, its parent exists, and its name isn’t already taken.