public class DFR_BM25 extends WeightingModel
averageDocumentLength, c, cs, documentFrequency, es, i, keyFrequency, numberOfDocuments, numberOfPointers, numberOfTokens, numberOfUniqueTerms, rq, termFrequency| Constructor and Description | 
|---|
| DFR_BM25()A default constructor. | 
| DFR_BM25(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)Computes the score according to the model DFR_BM25. | 
clone, getOverflowed, getParameter, prepare, score, setCollectionStatistics, setEntryStatistics, setKeyFrequency, setParameter, setRequestpublic DFR_BM25()
public DFR_BM25(double c)
c - the term frequency normalisation parameter value.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 in the documentdocLength - the document's lengthTerrier Information Retrieval Platform4.1. Copyright © 2004-2015, University of Glasgow