idFt method

double? idFt(
  1. String term,
  2. int n
)

Returns the inverse document frequency of the term for a corpus of size n.

Implementation

double? idFt(String term, int n) {
  final dFt = getFrequency(term);
  return (dFt > 0.0) ? log(n / getFrequency(term)) : null;
}