edu.udo.cs.wvtool.generic.vectorcreation
Class TermFrequency

java.lang.Object
  extended by edu.udo.cs.wvtool.generic.vectorcreation.TermFrequency
All Implemented Interfaces:
WVTVectorCreator

public class TermFrequency
extends java.lang.Object
implements WVTVectorCreator

Generate word vector by simply using term frequencies. The resulting vector is normalized.

Version:
$Id: TermFrequency.java,v 1.2 2006/06/06 11:45:23 mjwurst Exp $
Author:
Michael Wurst

Constructor Summary
TermFrequency()
           
 
Method Summary
 WVTWordVector createVector(int[] frequencies, int numTermOccurences, WVTWordList wordList, WVTDocumentInfo d)
          Create a word vector from term frequencies and a word list.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TermFrequency

public TermFrequency()
Method Detail

createVector

public WVTWordVector createVector(int[] frequencies,
                                  int numTermOccurences,
                                  WVTWordList wordList,
                                  WVTDocumentInfo d)
Description copied from interface: WVTVectorCreator
Create a word vector from term frequencies and a word list.

Specified by:
createVector in interface WVTVectorCreator
Parameters:
frequencies - an array containing the frequencies, by which individual terms occur in the document
wordList - a pointer to a WVTWordList
d - the WVTDocumentInfo value, describing the document being processed
Returns:
a WVTWordVector value
See Also:
WVTVectorCreator.createVector(int[], int, edu.udo.cs.wvtool.wordlist.WVTWordList, edu.udo.cs.wvtool.main.WVTDocumentInfo)