Class LambdaTTF


  • public class LambdaTTF
    extends Lambda
    Computes lambda as totalTermFreq+1 / numberOfDocuments+1.
    • Constructor Summary

      Constructors 
      Constructor Description
      LambdaTTF()
      Sole constructor: parameter-free
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      Explanation explain​(BasicStats stats)
      Explains the lambda parameter.
      float lambda​(BasicStats stats)
      Computes the lambda parameter.
      java.lang.String toString()
      Subclasses must override this method to return the code of the lambda formula.
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • LambdaTTF

        public LambdaTTF()
        Sole constructor: parameter-free
    • Method Detail

      • lambda

        public final float lambda​(BasicStats stats)
        Description copied from class: Lambda
        Computes the lambda parameter.
        Specified by:
        lambda in class Lambda
      • toString

        public java.lang.String toString()
        Description copied from class: Lambda
        Subclasses 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.
        Specified by:
        toString in class Lambda