pub trait Idf<T>where
T: NaiveDocument,{
// Required method
fn idf<'a, I, K>(term: K, docs: I) -> f64
where I: Iterator<Item = &'a T>,
K: Borrow<T::Term>,
T: 'a;
}Expand description
A strategy to calculate a weighted or unweighted inverse document frequency (idf) for a single term within a corpus of documents.
Required Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.