com.sun.labs.minion.retrieval
Class TFIDFCount

java.lang.Object
  extended by com.sun.labs.minion.retrieval.TFIDF
      extended by com.sun.labs.minion.retrieval.TFIDFCount
All Implemented Interfaces:
WeightingFunction

public class TFIDFCount
extends TFIDF

A subclass of TFIDF that uses simple term frequencies rather than log term frequencies when calculating term weights.


Field Summary
 
Fields inherited from class com.sun.labs.minion.retrieval.TFIDF
log, logTag
 
Constructor Summary
TFIDFCount()
           
 
Method Summary
 float termWeight(WeightingComponents wc)
          Calculates the weight for a particular term in a particular document, given a set of weighting components.
 
Methods inherited from class com.sun.labs.minion.retrieval.TFIDF
initTerm
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TFIDFCount

public TFIDFCount()
Method Detail

termWeight

public float termWeight(WeightingComponents wc)
Calculates the weight for a particular term in a particular document, given a set of weighting components.

Specified by:
termWeight in interface WeightingFunction
Overrides:
termWeight in class TFIDF
Parameters:
wc - a set of weighting components.
Returns:
the weight of the given term in the given document.