Terrier IR Platform
2.2.1

uk.ac.gla.terrier.matching.models.basicmodel
Class In_exp

java.lang.Object
  extended by uk.ac.gla.terrier.matching.models.basicmodel.BasicModel
      extended by uk.ac.gla.terrier.matching.models.basicmodel.In_exp
All Implemented Interfaces:
java.io.Serializable

public class In_exp
extends BasicModel

This class implements the In_exp basic model for randomness.

Version:
$Revision: 1.8 $
Author:
Ben He
See Also:
Serialized Form

Constructor Summary
In_exp()
          A default constructor.
 
Method Summary
 java.lang.String getInfo()
          Returns the name of the model.
 double score(double tf, double documentFrequency, double termFrequency, double keyFrequency, double documentLength)
          This method computes the score for the implemented weighting model.
 
Methods inherited from class uk.ac.gla.terrier.matching.models.basicmodel.BasicModel
setNumberOfDocuments, setNumberOfTokens, stirlingPower
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

In_exp

public In_exp()
A default constructor.

Method Detail

getInfo

public java.lang.String getInfo()
Returns the name of the model.

Specified by:
getInfo in class BasicModel
Returns:
the name of the model

score

public double score(double tf,
                    double documentFrequency,
                    double termFrequency,
                    double keyFrequency,
                    double documentLength)
This method computes the score for the implemented weighting model.

Specified by:
score in class BasicModel
Parameters:
tf - The term frequency in the document
documentFrequency - The document frequency of the term
termFrequency - the term frequency in the collection
documentLength - The length of the document.
keyFrequency - The normalised query term frequency.
Returns:
The score returned by the implemented weighting model.

Terrier IR Platform
2.2.1

Terrier Information Retrieval Platform 2.2.1. Copyright 2004-2008 University of Glasgow