#include <SimpleKLDocModel.hpp>
Inheritance diagram for lemur::retrieval::AbsoluteDiscountDocModel:
Public Member Functions | |
AbsoluteDiscountDocModel (lemur::api::DOCID_T docID, int dl, const lemur::langmod::UnigramLM &collectLM, const double *docProbMass, lemur::api::COUNT_T *uniqueTermCount, double discount, SimpleKLParameter::SmoothStrategy smthStrategy=SimpleKLParameter::INTERPOLATE) | |
virtual | ~AbsoluteDiscountDocModel () |
virtual double | unseenCoeff () const |
a(d) | |
virtual double | seenProb (double termFreq, lemur::api::TERMID_T termID) const |
p(w|d), w seen | |
Private Attributes | |
double * | collectPr |
lemur::api::COUNT_T * | uniqDocLen |
double | delta |
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 lemur::retrieval::SimpleKLDocModel. |
|
a(d)
Implements lemur::retrieval::SimpleKLDocModel. |
|
|
|
|
|
|