|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.terrier.matching.models.normalisation.Normalisation org.terrier.matching.models.normalisation.Normalisation3
public class Normalisation3
This class implements the Dirichlet Priors normalisation.
Field Summary | |
---|---|
protected java.lang.String |
methodName
The name of the normalisation method . |
Fields inherited from class org.terrier.matching.models.normalisation.Normalisation |
---|
averageDocumentLength, idf, Nt, numberOfDocuments, numberOfTokens, parameter, termFrequency |
Constructor Summary | |
---|---|
Normalisation3()
The default constructor. |
|
Normalisation3(double value)
The constructor that also sets the parameter mu of the Dirichlet Normalisation. |
Method Summary | |
---|---|
java.lang.String |
getInfo()
Get the name of the normalisation method. |
double |
normalise(double tf,
double docLength,
double termFrequency)
This method gets the normalised term frequency. |
Methods inherited from class org.terrier.matching.models.normalisation.Normalisation |
---|
getParameter, setAverageDocumentLength, setDocumentFrequency, setNumberOfDocuments, setNumberOfTokens, setParameter |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected final java.lang.String methodName
Constructor Detail |
---|
public Normalisation3()
public Normalisation3(double value)
value
- The specified value for the parameter mu.Method Detail |
---|
public java.lang.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.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |