public class Dl extends WeightingModel
averageDocumentLength, c, cs, documentFrequency, es, i, keyFrequency, numberOfDocuments, numberOfPointers, numberOfTokens, numberOfUniqueTerms, rq, termFrequency| Modifier and Type | Method and Description |
|---|---|
String |
getInfo()
Returns the name of the model.
|
double |
getParameter()
Returns the b parameter to the ranking formula as set by setParameter()
|
double |
score(double tf,
double docLength)
This method provides the contract for implementing weighting models.
|
void |
setParameter(double b)
Sets the b parameter to ranking formula
|
clone, getOverflowed, prepare, score, setCollectionStatistics, setEntryStatistics, setKeyFrequency, setRequestpublic final String getInfo()
WeightingModelgetInfo in interface ModelgetInfo in class WeightingModelpublic final double score(double tf,
double docLength)
WeightingModelscore in class WeightingModeltf - The term frequency in the documentdocLength - the document's lengthpublic void setParameter(double b)
setParameter in interface ModelsetParameter in class WeightingModelb - the b parameter value to use.public double getParameter()
getParameter in interface ModelgetParameter in class WeightingModelTerrier Information Retrieval Platform4.1. Copyright © 2004-2015, University of Glasgow