org.apache.mahout.vectorizer
Class TFIDF

java.lang.Object
  extended by org.apache.mahout.vectorizer.TFIDF
All Implemented Interfaces:
Weight

public class TFIDF
extends Object
implements Weight


Constructor Summary
TFIDF()
           
 
Method Summary
 double calculate(int tf, int df, int length, int numDocs)
          Experimental
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TFIDF

public TFIDF()
Method Detail

calculate

public double calculate(int tf,
                        int df,
                        int length,
                        int numDocs)
Description copied from interface: Weight
Experimental

Specified by:
calculate in interface Weight
Parameters:
tf - term freq
df - doc freq
length - Length of the document
numDocs - the total number of docs
Returns:
The weight


Copyright © 2008–2014 The Apache Software Foundation. All rights reserved.