tml.corpus
Class TextPassage.TextPassageStats

java.lang.Object
  extended by tml.corpus.TextPassage.TextPassageStats
Enclosing class:
TextPassage

public class TextPassage.TextPassageStats
extends java.lang.Object

This class represents the statistics for a TextPassage. Basically how many total terms and how many different terms.

Author:
Jorge Villalon

Constructor Summary
TextPassage.TextPassageStats()
           
 
Method Summary
 int getDifferentTerms()
          How many different terms the TextPassage contains
 Stats getStats()
           
 int getTotalTerms()
           
 void load(int[] termsFrequencies)
          Loads a set of term frequencies into the passage
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TextPassage.TextPassageStats

public TextPassage.TextPassageStats()
Method Detail

getDifferentTerms

public int getDifferentTerms()
How many different terms the TextPassage contains

Returns:
the number of different terms

getStats

public Stats getStats()
Returns:
the statistics for the TextPassage

getTotalTerms

public int getTotalTerms()
Returns:
the total number of terms in a TextPassage

load

public void load(int[] termsFrequencies)
Loads a set of term frequencies into the passage

Parameters:
termsFrequencies - an array with the term frequencies