#include <SimpleKLDocModel.hpp>
Inheritance diagram for AbsoluteDiscountDocModel:

Public Methods | |
| AbsoluteDiscountDocModel (int docID, int dl, const UnigramLM &collectLM, const double *docProbMass, int *uniqueTermCount, double discount, SimpleKLParameter::SmoothStrategy smthStrategy=SimpleKLParameter::INTERPOLATE) | |
| virtual | ~AbsoluteDiscountDocModel () |
| virtual double | unseenCoeff () const |
| a(d) | |
| virtual double | seenProb (double termFreq, int 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. |
1.2.18