Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages  

AbsoluteDiscountDocModel Class Reference

Absolute discout smoothing. More...

#include <SimpleKLDocModel.hpp>

Inheritance diagram for AbsoluteDiscountDocModel:

SimpleKLDocModel DocumentRep List of all members.

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


Detailed Description

Absolute discout smoothing.

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|


Constructor & Destructor Documentation

AbsoluteDiscountDocModel::AbsoluteDiscountDocModel DOCID_T    docID,
int    dl,
const UnigramLM   collectLM,
const double *    docProbMass,
COUNT_T   uniqueTermCount,
double    discount,
SimpleKLParameter::SmoothStrategy    smthStrategy = SimpleKLParameter::INTERPOLATE
[inline]
 

virtual AbsoluteDiscountDocModel::~AbsoluteDiscountDocModel   [inline, virtual]
 


Member Function Documentation

virtual double AbsoluteDiscountDocModel::seenProb double    termFreq,
TERMID_T    termID
const [inline, virtual]
 

p(w|d), w seen

Implements SimpleKLDocModel.

virtual double AbsoluteDiscountDocModel::unseenCoeff   [inline, virtual]
 

a(d)

Implements SimpleKLDocModel.


The documentation for this class was generated from the following file:
Generated on Wed Nov 3 12:59:22 2004 for Lemur Toolkit by doxygen1.2.18