public class pBiL extends WeightingModel
Modifier and Type | Field and Description |
---|---|
protected static GammaFunction |
gf |
protected static double |
REC_LOG_2 |
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 |
score(double matchingNGrams,
double docLength)
This method provides the contract for implementing weighting models.
|
void |
setEntryStatistics(EntryStatistics _es)
Sets entry statistics.
|
clone, getOverflowed, getParameter, prepare, score, setCollectionStatistics, setKeyFrequency, setParameter, setRequest
protected static final double REC_LOG_2
protected static final GammaFunction gf
public String getInfo()
WeightingModel
getInfo
in interface Model
getInfo
in class WeightingModel
public void setEntryStatistics(EntryStatistics _es)
WeightingModel
setEntryStatistics
in class WeightingModel
public double score(double matchingNGrams, double docLength)
WeightingModel
score
in class WeightingModel
matchingNGrams
- The term frequency in the documentdocLength
- the document's lengthTerrier Information Retrieval Platform 5.1. Copyright © 2004-2019, University of Glasgow