org.terrier.structures
Interface EntryStatistics

All Superinterfaces:
java.io.Serializable
All Known Subinterfaces:
BlockEntryStatistics, FieldEntryStatistics
All Known Implementing Classes:
BasicLexiconEntry, BasicTermStatsLexiconEntry, BlockFieldLexiconEntry, BlockLexiconEntry, FieldLexiconEntry, LexiconEntry

public interface EntryStatistics
extends java.io.Serializable

An interface for basic statistics about a lexical entry (usually a term)

Since:
3.0
Author:
Craig Macdonald

Method Summary
 void add(EntryStatistics e)
          Increment the statistics of this object by that of another
 int getDocumentFrequency()
          The number of documents that the entry (term) occurred in
 int getFrequency()
          The frequency (total number of occurrences) of the entry (term).
 int getTermId()
          The id of the term
 void subtract(EntryStatistics e)
          Decrement the statistics of this object by that of another
 

Method Detail

getFrequency

int getFrequency()
The frequency (total number of occurrences) of the entry (term).


getDocumentFrequency

int getDocumentFrequency()
The number of documents that the entry (term) occurred in


getTermId

int getTermId()
The id of the term


add

void add(EntryStatistics e)
Increment the statistics of this object by that of another


subtract

void subtract(EntryStatistics e)
Decrement the statistics of this object by that of another



Terrier 3.5. Copyright © 2004-2011 University of Glasgow