Terrier IR Platform
2.2.1

uk.ac.gla.terrier.structures.indexing
Class TermEstimateIndex

java.lang.Object
  extended by uk.ac.gla.terrier.structures.indexing.TermEstimateIndex

public class TermEstimateIndex
extends java.lang.Object

This class implements a data structure for the term estimate (P_{avg}) of language modelling approach to IR.


Constructor Summary
TermEstimateIndex()
          The default constructor.
TermEstimateIndex(Index index)
           
 
Method Summary
 void dumpTermEstimateIndex()
          This method prints all the entries in the term estimate index.
 double getTermEstimateByTermid(int termid)
          Get the term estimate of a term by termid.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TermEstimateIndex

public TermEstimateIndex()
The default constructor.


TermEstimateIndex

public TermEstimateIndex(Index index)
Method Detail

dumpTermEstimateIndex

public void dumpTermEstimateIndex()
This method prints all the entries in the term estimate index.


getTermEstimateByTermid

public double getTermEstimateByTermid(int termid)
Get the term estimate of a term by termid.

Parameters:
termid - The id of term.
Returns:
The term estimate corresponding to the given termid.

Terrier IR Platform
2.2.1

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