Class LambdaDF
java.lang.Object
org.apache.lucene.search.similarities.Lambda
org.apache.lucene.search.similarities.LambdaDF
Computes lambda as
docFreq+1 / numberOfDocuments+1.- WARNING: This API is experimental and might change in incompatible ways in the next release.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal Explanationexplain(BasicStats stats) Explains the lambda parameter.final floatlambda(BasicStats stats) Computes the lambda parameter.toString()Subclasses must override this method to return the code of the lambda formula.
-
Constructor Details
-
LambdaDF
public LambdaDF()Sole constructor: parameter-free
-
-
Method Details
-
lambda
Description copied from class:LambdaComputes the lambda parameter. -
explain
Description copied from class:LambdaExplains the lambda parameter. -
toString
Description copied from class:LambdaSubclasses must override this method to return the code of the lambda formula. Since the original paper is not very clear on this matter, and also uses the DFR naming scheme incorrectly, the codes here were chosen arbitrarily.
-