Class AfterEffectL
java.lang.Object
org.apache.lucene.search.similarities.AfterEffect
org.apache.lucene.search.similarities.AfterEffectL
Model of the information gain based on Laplace's law of succession.
- WARNING: This API is experimental and might change in incompatible ways in the next release.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionfinal Explanation
explain
(BasicStats stats, double tfn) Returns an explanation for the score.final double
scoreTimes1pTfn
(BasicStats stats) Returns the product of the after effect with1+tfn
.toString()
Subclasses must override this method to return the code of the after effect formula.
-
Constructor Details
-
AfterEffectL
public AfterEffectL()Sole constructor: parameter-free
-
-
Method Details
-
scoreTimes1pTfn
Description copied from class:AfterEffect
Returns the product of the after effect with1+tfn
. This may not depend on the value oftfn
.- Specified by:
scoreTimes1pTfn
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
-