public class In_expC2 extends WeightingModel
averageDocumentLength, c, cs, documentFrequency, es, i, keyFrequency, numberOfDocuments, numberOfPointers, numberOfTokens, numberOfUniqueTerms, rq, termFrequency
Constructor and Description |
---|
In_expC2()
A default constructor.
|
In_expC2(double c)
Constructs an instance of this class
with the specified value for the parameter beta.
|
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 weighting models In_expC2.
|
double |
score(double tf,
double docLength,
double documentFrequency,
double termFrequency,
double keyFrequency)
Deprecated.
|
clone, getOverflowed, getParameter, prepare, score, setCollectionStatistics, setEntryStatistics, setKeyFrequency, setParameter, setRequest
public In_expC2()
public In_expC2(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 length@Deprecated public final double score(double tf, double docLength, double documentFrequency, double termFrequency, double keyFrequency)
score
in class WeightingModel
tf
- The term frequency in the documentdocLength
- the document's lengthdocumentFrequency
- The document frequency of the termtermFrequency
- the term frequency in the collectionkeyFrequency
- the term frequency in the queryTerrier 4.0. Copyright © 2004-2014 University of Glasgow