Class PL

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Cloneable

    public class PL
    extends P
    This class implements the PL weighting model.
    Since:
    3.0
    Author:
    Gianni Amati, Ben He, Vassilis Plachouras
    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor Description
      PL()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getInfo()
      Returns the name of the model.
      double score​(double tf, double documentFrequency, double F_t, double keyFrequency, double documentLength)
      This method provides the contract for implementing weighting models.
      • Methods inherited from class java.lang.Object

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

      • PL

        public PL()
    • Method Detail

      • score

        public double score​(double tf,
                            double documentFrequency,
                            double F_t,
                            double keyFrequency,
                            double documentLength)
        Description copied from class: P
        This method provides the contract for implementing weighting models.
        Overrides:
        score in class P
        Parameters:
        tf - The term frequency in the document
        documentFrequency - The document frequency of the term
        F_t - the term frequency in the collection
        keyFrequency - The normalised query term frequency.
        documentLength - The length of the document.
        Returns:
        the score returned by the implemented weighting model.
      • getInfo

        public java.lang.String getInfo()
        Description copied from class: P
        Returns the name of the model.
        Overrides:
        getInfo in class P
        Returns:
        the name of the model