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

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

public class TermOccurrences
extends java.lang.Object
implements WVTVectorCreator

Create the vector by taking the number of occurences.

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

Constructor Summary
TermOccurrences()
           
 
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

TermOccurrences

public TermOccurrences()
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