public class NormalisationP 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 |
---|
NormalisationP()
The default constructor.
|
NormalisationP(double value)
Constructor that also sets the parameter z (the power in the normalisation).
|
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, setParameter
protected final String methodName
public NormalisationP()
public NormalisationP(double value)
value
- The specified value for the parameter z.public String getInfo()
getInfo
in class Normalisation
public double normalise(double tf, double docLength, double termFrequency)
normalise
in class Normalisation
tf
- 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 4.0. Copyright © 2004-2014 University of Glasgow