pub struct ProbNotOperator {
pub signal: Arc<dyn Operator>,
pub default_prob: f64,
}Expand description
Probabilistic NOT (P(¬signal) = 1 - P(signal)). Documents present in
signal get
1 - score; documents missing from the signal but present in
the document store get 1 - default_prob.
Fields§
§signal: Arc<dyn Operator>§default_prob: f64Implementations§
Trait Implementations§
Source§impl Operator for ProbNotOperator
impl Operator for ProbNotOperator
fn execute(&self, ctx: &ExecutionContext) -> OperatorResult
fn cost_estimate(&self, stats: &IndexStats) -> f64
Auto Trait Implementations§
impl !RefUnwindSafe for ProbNotOperator
impl !UnwindSafe for ProbNotOperator
impl Freeze for ProbNotOperator
impl Send for ProbNotOperator
impl Sync for ProbNotOperator
impl Unpin for ProbNotOperator
impl UnsafeUnpin for ProbNotOperator
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