public class LGD extends WeightingModel
averageDocumentLength, c, cs, documentFrequency, es, i, keyFrequency, numberOfDocuments, numberOfPointers, numberOfTokens, numberOfUniqueTerms, rq, termFrequency
Constructor and Description |
---|
LGD()
A default constructor.
|
LGD(double c)
Constructs an instance of this class with the
specified value for the parameter c.
|
Modifier and Type | Method and Description |
---|---|
String |
getInfo()
Returns the name of the model.
|
double |
score(double tf,
double docLength)
Uses LGD to compute a weight for a term in a document.
|
clone, getOverflowed, getParameter, prepare, score, setCollectionStatistics, setEntryStatistics, setKeyFrequency, setParameter, setRequest
public LGD()
public LGD(double c)
c
- the term frequency normalisation parameter value.public final String getInfo()
getInfo
in interface Model
getInfo
in class WeightingModel
public final double score(double tf, double docLength)
score
in class WeightingModel
tf
- The term frequency in the documentdocLength
- the document's lengthTerrier Information Retrieval Platform 5.1. Copyright © 2004-2019, University of Glasgow