#include <SimpleKLDocModel.hpp>
Inheritance diagram for AbsoluteDiscountDocModel:
Public Methods | |
AbsoluteDiscountDocModel (DOCID_T docID, int dl, const UnigramLM &collectLM, const double *docProbMass, COUNT_T *uniqueTermCount, double discount, SimpleKLParameter::SmoothStrategy smthStrategy=SimpleKLParameter::INTERPOLATE) | |
virtual | ~AbsoluteDiscountDocModel () |
virtual double | unseenCoeff () const |
a(d) | |
virtual double | seenProb (double termFreq, TERMID_T termID) const |
p(w|d), w seen |
P(w|d) = (termFreq - delta)/|d|+ lambda*Pc(w) if seen or = lambda*Pc(w) if unseen where, lambda = unique-term-count-in-d*delta/|d|
|
|
|
|
|
p(w|d), w seen
Implements SimpleKLDocModel. |
|
a(d)
Implements SimpleKLDocModel. |