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

Public Methods | |
| AbsoluteDiscountDocModel (int docID,Index *referenceIndex,UnigramLM &collectLM,double *docProbMass,int *uniqueTermCount,double discount,SimpleKLParameter::SmoothStrategy smthStrategy=SimpleKLParameter::INTERPOLATE) | |
| virtual | ~AbsoluteDiscountDocModel () |
| virtual double | unseenCoeff () |
| a(d). | |
| virtual double | seenProb (double termFreq,int termID) |
| 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.
Reimplemented from SimpleKLDocModel. |
|
|
a(d).
Reimplemented from SimpleKLDocModel. |
1.2.4 written by Dimitri van Heesch,
© 1997-2000