public class In extends BasicModel
Modifier and Type | Field and Description |
---|---|
protected String |
modelName
The name of the model.
|
protected double |
numberOfDocuments
The number of documents in the whole collection.
|
i, numberOfTokens
Constructor and Description |
---|
In()
A default constructor.
|
Modifier and Type | Method and Description |
---|---|
String |
getInfo()
Returns the name of the model.
|
double |
score(double tf,
double documentFrequency,
double termFrequency,
double keyFrequency,
double documentLength)
This method computes the score for the implemented weighting model.
|
clone, setNumberOfDocuments, setNumberOfTokens, stirlingPower
protected String modelName
protected double numberOfDocuments
public String getInfo()
getInfo
in class BasicModel
public double score(double tf, double documentFrequency, double termFrequency, double keyFrequency, double documentLength)
score
in class BasicModel
tf
- The term frequency in the documentdocumentFrequency
- The document frequency of the termtermFrequency
- the term frequency in the collectiondocumentLength
- The length of the document.keyFrequency
- The normalised query term frequency.Terrier Information Retrieval Platform4.1. Copyright © 2004-2015, University of Glasgow