|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.terrier.matching.models.aftereffect.AfterEffect
org.terrier.matching.models.aftereffect.B
public class B
This class implements the B model for the first normalisation by after effect. B stands for the binomial model.
| Field Summary | |
|---|---|
protected java.lang.String |
methodName
The name of the model. |
| Fields inherited from class org.terrier.matching.models.aftereffect.AfterEffect |
|---|
avl, parameter |
| Constructor Summary | |
|---|---|
B()
|
|
| Method Summary | |
|---|---|
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 |
|---|
getParameter, setAverageDocumentLength, 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 B()
| Method Detail |
|---|
public java.lang.String getInfo()
getInfo in class AfterEffect
public double gain(double tf,
double documentFrequency,
double termFrequency)
gain in class AfterEffecttf - The term frequency in the documentdocumentFrequency - The document frequency of the termtermFrequency - the term frequency in the collection
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||