public class DFReeKLIM extends WeightingModel
averageDocumentLength, c, cs, documentFrequency, es, i, keyFrequency, numberOfDocuments, numberOfPointers, numberOfTokens, numberOfUniqueTerms, rq, termFrequency| Constructor and Description |
|---|
DFReeKLIM()
A default constructor to make this model.
|
DFReeKLIM(double c) |
| Modifier and Type | Method and Description |
|---|---|
String |
getInfo()
Returns the name of the model, in this case "DFReeKLIM"
|
double |
score(double tf,
double docLength)
Uses DFReeKLIM to compute a weight for a term in a document.
|
double |
score(double tf,
double docLength,
double documentFrequency,
double termFrequency,
double keyFrequency)
Uses DFReeKLIM to compute a weight for a term in a document.
|
clone, getOverflowed, getParameter, prepare, score, setCollectionStatistics, setEntryStatistics, setKeyFrequency, setParameter, setRequestpublic DFReeKLIM()
public DFReeKLIM(double c)
public final String getInfo()
getInfo in interface ModelgetInfo in class WeightingModelpublic final double score(double tf,
double docLength)
score in class WeightingModeltf - The term frequency of the term in the documentdocLength - the document's lengthpublic final double score(double tf,
double docLength,
double documentFrequency,
double termFrequency,
double keyFrequency)
tf - The term frequency of the term in the documentdocLength - the document's lengthdocumentFrequency - The document frequency of the term (ignored)termFrequency - the term frequency in the collection (ignored)keyFrequency - the term frequency in the query (ignored).Terrier Information Retrieval Platform4.1. Copyright © 2004-2015, University of Glasgow