[−][src]Function octopus_query::compute_idf
pub fn compute_idf(n: usize, d: usize) -> f32
idf is log(1 + N/D)
N = total documents in the index d = documents matching (len(postings)) https://en.wikipedia.org/wiki/tf-idf
pub fn compute_idf(n: usize, d: usize) -> f32
idf is log(1 + N/D)
N = total documents in the index d = documents matching (len(postings)) https://en.wikipedia.org/wiki/tf-idf