org.terrier.matching.models.basicmodel
Class PL

java.lang.Object
  extended by org.terrier.matching.models.basicmodel.BasicModel
      extended by org.terrier.matching.models.basicmodel.P
          extended by org.terrier.matching.models.basicmodel.PL
All Implemented Interfaces:
java.io.Serializable

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

Field Summary
 
Fields inherited from class org.terrier.matching.models.basicmodel.P
modelName
 
Fields inherited from class org.terrier.matching.models.basicmodel.BasicModel
i, numberOfDocuments, numberOfTokens
 
Constructor Summary
PL()
           
 
Method Summary
 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 org.terrier.matching.models.basicmodel.BasicModel
setNumberOfDocuments, setNumberOfTokens, stirlingPower
 
Methods inherited from class java.lang.Object
clone, 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


Terrier 3.5. Copyright © 2004-2011 University of Glasgow