Class DistributionSPL
- java.lang.Object
 - 
- org.apache.lucene.search.similarities.Distribution
 - 
- org.apache.lucene.search.similarities.DistributionSPL
 
 
 
- 
public class DistributionSPL extends Distribution
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.
 
- 
- 
Constructor Summary
Constructors Constructor Description DistributionSPL()Sole constructor: parameter-free 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description floatscore(BasicStats stats, float tfn, float lambda)Computes the score.java.lang.StringtoString()Subclasses must override this method to return the name of the distribution.- 
Methods inherited from class org.apache.lucene.search.similarities.Distribution
explain 
 - 
 
 - 
 
- 
- 
Method Detail
- 
score
public final float score(BasicStats stats, float tfn, float lambda)
Description copied from class:DistributionComputes the score.- Specified by:
 scorein classDistribution
 
- 
toString
public java.lang.String toString()
Description copied from class:DistributionSubclasses must override this method to return the name of the distribution.- Specified by:
 toStringin classDistribution
 
 - 
 
 -