Class AfterEffect
- java.lang.Object
-
- org.apache.lucene.search.similarities.AfterEffect
-
- Direct Known Subclasses:
AfterEffect.NoAfterEffect,AfterEffectB,AfterEffectL
public abstract class AfterEffect extends java.lang.ObjectThis 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.- See Also:
DFRSimilarity
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classAfterEffect.NoAfterEffectImplementation used when there is no aftereffect.
-
Constructor Summary
Constructors Constructor Description AfterEffect()Sole constructor.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description abstract Explanationexplain(BasicStats stats, float tfn)Returns an explanation for the score.abstract floatscore(BasicStats stats, float tfn)Returns the aftereffect score.abstract java.lang.StringtoString()Subclasses must override this method to return the code of the after effect formula.
-
-
-
Method Detail
-
score
public abstract float score(BasicStats stats, float tfn)
Returns the aftereffect score.
-
explain
public abstract Explanation explain(BasicStats stats, float tfn)
Returns an explanation for the score.
-
toString
public abstract java.lang.String toString()
Subclasses must override this method to return the code of the after effect formula. Refer to the original paper for the list.- Overrides:
toStringin classjava.lang.Object
-
-