Example #1
0
float IDF_simple::operator() (const InvertedIndex &index, uint termId, uint listId, uint /*docId*/) const
{
    float f_dt = index.invertedList()[termId][listId].second;
    return 1 + std::log(f_dt);
}