|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.lucene.search.similarities.AfterEffect
public abstract class AfterEffect
This class acts as the base class for the implementations of the first normalization of the informative content in the DFR framework. This component is also called the after effect and is defined by the formula Inf2 = 1 - Prob2, where Prob2 measures the information gain.
DFRSimilarity
Nested Class Summary | |
---|---|
static class |
AfterEffect.NoAfterEffect
Implementation used when there is no aftereffect. |
Constructor Summary | |
---|---|
AfterEffect()
Sole constructor. |
Method Summary | |
---|---|
abstract Explanation |
explain(BasicStats stats,
float tfn)
Returns an explanation for the score. |
abstract float |
score(BasicStats stats,
float tfn)
Returns the aftereffect score. |
abstract String |
toString()
Subclasses must override this method to return the code of the after effect formula. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public AfterEffect()
Method Detail |
---|
public abstract float score(BasicStats stats, float tfn)
public abstract Explanation explain(BasicStats stats, float tfn)
public abstract String toString()
toString
in class Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |