public class B extends BasicModel
| Modifier and Type | Field and Description | 
|---|---|
| protected String | modelNameThe name of the model. | 
i, numberOfDocuments, numberOfTokens| Constructor and Description | 
|---|
| B() | 
| 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, stirlingPowerprotected String modelName
public String getInfo()
getInfo in class BasicModelpublic double score(double tf,
                    double documentFrequency,
                    double termFrequency,
                    double keyFrequency,
                    double documentLength)
score in class BasicModeltf - The term frequency in the documentdocumentFrequency - The document frequency of the termtermFrequency - the term frequency in the collectionkeyFrequency - The normalised query term frequency.documentLength - The length of the document.Terrier Information Retrieval Platform 5.1. Copyright © 2004-2019, University of Glasgow