Class BasicModelP
- java.lang.Object
-
- org.apache.lucene.search.similarities.BasicModel
-
- org.apache.lucene.search.similarities.BasicModelP
-
public class BasicModelP extends BasicModel
Implements the Poisson approximation for the binomial model for DFR.
-
-
Field Summary
Fields Modifier and Type Field Description protected static doubleLOG2_Elog2(Math.E), precomputed.
-
Constructor Summary
Constructors Constructor Description BasicModelP()Sole constructor: parameter-free
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description floatscore(BasicStats stats, float tfn)Returns the informative content score.StringtoString()Subclasses must override this method to return the code of the basic model formula.-
Methods inherited from class org.apache.lucene.search.similarities.BasicModel
explain
-
-
-
-
Method Detail
-
score
public final float score(BasicStats stats, float tfn)
Description copied from class:BasicModelReturns the informative content score.- Specified by:
scorein classBasicModel
-
toString
public String toString()
Description copied from class:BasicModelSubclasses must override this method to return the code of the basic model formula. Refer to the original paper for the list.- Specified by:
toStringin classBasicModel
-
-