Idf

Trait Idf 

Source
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§

Source

fn idf<'a, I, K>(term: K, docs: I) -> f64
where I: Iterator<Item = &'a T>, K: Borrow<T::Term>, T: 'a,

Returns the weighted or unweighted inverse document frequency (idf) for a single term within a corpus of documents.

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.

Implementors§

Source§

impl<'l, T, E> Idf<T> for InverseFrequencyMaxIdf
where T: ProcessedDocument<Term = E> + ExpandableDocument<'l>, E: Hash + Eq + 'l,

Source§

impl<S, T> Idf<T> for S

Source§

impl<T> Idf<T> for UnaryIdf
where T: NaiveDocument,