| 
 | Terrier IR Platform 2.2.1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectuk.ac.gla.terrier.matching.models.aftereffect.AfterEffect
public abstract class AfterEffect
This class provides a contract for implementing the first normalisation by after effect models for the DFR framework. This is referred to as the component (1-prob2) in the DFR framework. Classes implementing this interface are used by the DFRWeightingModel.
DFRWeightingModel, 
Serialized Form| Constructor Summary | |
|---|---|
| AfterEffect()A default constructor | |
| Method Summary | |
|---|---|
| abstract  double | gain(double tf,
     double documentFrequency,
     double termFrequency)This method provides the contract for implementing first normalisation by after effect. | 
| abstract  java.lang.String | getInfo()Returns the name of the model. | 
|  double | getParameter() | 
|  void | setAverageDocumentLength(double value)Set the average document length, which is used for computing the prior for the first normalisation. | 
|  void | setParameter(double parameter) | 
| Methods inherited from class java.lang.Object | 
|---|
| equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Constructor Detail | 
|---|
public AfterEffect()
| Method Detail | 
|---|
public void setAverageDocumentLength(double value)
value - The average document length.public double getParameter()
public void setParameter(double parameter)
parameter - the term frequency normalisation parameter value to setpublic abstract java.lang.String getInfo()
public abstract double gain(double tf,
                            double documentFrequency,
                            double termFrequency)
tf - The term frequency in the documentdocumentFrequency - The document frequency of the given query termtermFrequency - The frequency of the given term in the whole collection.
| 
 | Terrier IR Platform 2.2.1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||