Main Page | Namespace List | Class Hierarchy | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

lemur::retrieval::AbsoluteDiscountDocModel Class Reference

Absolute discout smoothing. More...

#include <SimpleKLDocModel.hpp>

Inheritance diagram for lemur::retrieval::AbsoluteDiscountDocModel:

lemur::retrieval::SimpleKLDocModel lemur::api::DocumentRep List of all members.

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_TuniqDocLen
double delta

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

lemur::retrieval::AbsoluteDiscountDocModel::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
[inline]
 

virtual lemur::retrieval::AbsoluteDiscountDocModel::~AbsoluteDiscountDocModel  )  [inline, virtual]
 


Member Function Documentation

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

p(w|d), w seen

Implements lemur::retrieval::SimpleKLDocModel.

virtual double lemur::retrieval::AbsoluteDiscountDocModel::unseenCoeff  )  const [inline, virtual]
 

a(d)

Implements lemur::retrieval::SimpleKLDocModel.


Member Data Documentation

double* lemur::retrieval::AbsoluteDiscountDocModel::collectPr [private]
 

double lemur::retrieval::AbsoluteDiscountDocModel::delta [private]
 

lemur::api::COUNT_T* lemur::retrieval::AbsoluteDiscountDocModel::uniqDocLen [private]
 


The documentation for this class was generated from the following file:
Generated on Tue Jun 15 11:03:06 2010 for Lemur by doxygen 1.3.4