pub struct ThresholdFilter {
pub threshold: f64,
pub weights: HashMap<String, f64>,
}Expand description
Accepts patterns whose composite score meets or exceeds a threshold.
Fields§
§threshold: f64Minimum composite score to accept.
weights: HashMap<String, f64>Per-evaluator weights for composite scoring. Missing evaluators default to weight 1.0.
Trait Implementations§
Source§impl PatternFilter for ThresholdFilter
impl PatternFilter for ThresholdFilter
Auto Trait Implementations§
impl Freeze for ThresholdFilter
impl RefUnwindSafe for ThresholdFilter
impl Send for ThresholdFilter
impl Sync for ThresholdFilter
impl Unpin for ThresholdFilter
impl UnsafeUnpin for ThresholdFilter
impl UnwindSafe for ThresholdFilter
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more