pub struct AdaptiveWANDScorer {
pub scorers: Vec<Arc<dyn Scorer>>,
pub k: usize,
pub posting_lists: Vec<PostingList>,
pub tightening_factor: f64,
pub analyzer: BoundTightnessAnalyzer,
}Fields§
§scorers: Vec<Arc<dyn Scorer>>§k: usize§posting_lists: Vec<PostingList>§tightening_factor: f64§analyzer: BoundTightnessAnalyzerImplementations§
Source§impl AdaptiveWANDScorer
impl AdaptiveWANDScorer
pub fn new( scorers: Vec<Arc<dyn Scorer>>, k: usize, posting_lists: Vec<PostingList>, tightening_factor: f64, ) -> ScoringResult<Self>
pub fn compute_upper_bounds(&self) -> ScoringResult<Vec<f64>>
pub fn score_top_k(&mut self) -> ScoringResult<PostingList>
Auto Trait Implementations§
impl !RefUnwindSafe for AdaptiveWANDScorer
impl !UnwindSafe for AdaptiveWANDScorer
impl Freeze for AdaptiveWANDScorer
impl Send for AdaptiveWANDScorer
impl Sync for AdaptiveWANDScorer
impl Unpin for AdaptiveWANDScorer
impl UnsafeUnpin for AdaptiveWANDScorer
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