Class DistributionSPL
java.lang.Object
org.apache.lucene.search.similarities.Distribution
org.apache.lucene.search.similarities.DistributionSPL
The smoothed power-law (SPL) distribution for the information-based framework that is described
in the original paper.
Unlike for DFR, the natural logarithm is used, as it is faster to compute and the original paper does not express any preference to a specific base. WARNING: this model currently returns infinite scores for very small tf values and negative scores for very large tf values
- WARNING: This API is experimental and might change in incompatible ways in the next release.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionfinal double
score
(BasicStats stats, double tfn, double lambda) Computes the score.toString()
Subclasses must override this method to return the name of the distribution.Methods inherited from class org.apache.lucene.search.similarities.Distribution
explain
-
Constructor Details
-
DistributionSPL
public DistributionSPL()Sole constructor: parameter-free
-
-
Method Details
-
score
Description copied from class:Distribution
Computes the score.- Specified by:
score
in classDistribution
-
toString
Description copied from class:Distribution
Subclasses must override this method to return the name of the distribution.- Specified by:
toString
in classDistribution
-