public class Normalisation1 extends Normalisation
| Modifier and Type | Field and Description |
|---|---|
protected String |
methodName
The name of the normalisation method .
|
averageDocumentLength, idf, Nt, numberOfDocuments, numberOfTokens, parameter, termFrequency| Constructor and Description |
|---|
Normalisation1() |
| Modifier and Type | Method and Description |
|---|---|
String |
getInfo()
Get the name of the normalisation method.
|
double |
normalise(double tf,
double docLength,
double termFrequency)
This method gets the normalised term frequency.
|
clone, getParameter, setAverageDocumentLength, setDocumentFrequency, setNumberOfDocuments, setNumberOfTokens, setParameterprotected final String methodName
public String getInfo()
getInfo in class Normalisationpublic double normalise(double tf,
double docLength,
double termFrequency)
normalise in class Normalisationtf - The frequency of the query term in the document.docLength - The number of tokens in the document.termFrequency - The frequency of the query term in the collection.Terrier Information Retrieval Platform4.1. Copyright © 2004-2015, University of Glasgow