Class AfterEffectB
java.lang.Object
org.apache.lucene.search.similarities.AfterEffect
org.apache.lucene.search.similarities.AfterEffectB
Model of the information gain based on the ratio of two Bernoulli processes.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.lucene.search.similarities.AfterEffect
AfterEffect.NoAfterEffect
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal Explanation
explain
(BasicStats stats, float tfn) Returns an explanation for the score.final float
score
(BasicStats stats, float tfn) Returns the aftereffect score.toString()
Subclasses must override this method to return the code of the after effect formula.
-
Constructor Details
-
AfterEffectB
public AfterEffectB()Sole constructor: parameter-free
-
-
Method Details
-
score
Description copied from class:AfterEffect
Returns the aftereffect score.- Specified by:
score
in classAfterEffect
-
explain
Description copied from class:AfterEffect
Returns an explanation for the score.- Specified by:
explain
in classAfterEffect
-
toString
Description copied from class:AfterEffect
Subclasses must override this method to return the code of the after effect formula. Refer to the original paper for the list.- Specified by:
toString
in classAfterEffect
-