Class L
- java.lang.Object
-
- org.terrier.matching.models.aftereffect.AfterEffect
-
- org.terrier.matching.models.aftereffect.L
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Cloneable
public class L extends AfterEffect
This class implements the L model for the first normalisation by after effect. L stands for the Laplace succession.- Author:
- Ben He
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected java.lang.String
methodName
The name of the model.-
Fields inherited from class org.terrier.matching.models.aftereffect.AfterEffect
avl, parameter
-
-
Constructor Summary
Constructors Constructor Description L()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description double
gain(double tf, double documentFrequency, double termFrequency)
This method computes the gain of encountering an extra token of the query term.java.lang.String
getInfo()
This method returns the name of the model.-
Methods inherited from class org.terrier.matching.models.aftereffect.AfterEffect
clone, getParameter, setAverageDocumentLength, setParameter
-
-
-
-
Field Detail
-
methodName
protected final java.lang.String methodName
The name of the model.- See Also:
- Constant Field Values
-
-
Method Detail
-
getInfo
public java.lang.String getInfo()
This method returns the name of the model.- Specified by:
getInfo
in classAfterEffect
- Returns:
- String Return the name of the model.
-
gain
public double gain(double tf, double documentFrequency, double termFrequency)
This method computes the gain of encountering an extra token of the query term.- Specified by:
gain
in classAfterEffect
- Parameters:
tf
- The term frequency in the documentdocumentFrequency
- The document frequency of the termtermFrequency
- the term frequency in the collection- Returns:
- the gain returned by the implemented formula.
-
-