org.apache.mahout.vectorizer
Class TFIDF
java.lang.Object
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 |
TFIDF
public TFIDF()
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 freqdf
- doc freqlength
- Length of the documentnumDocs
- the total number of docs
- Returns:
- The weight
Copyright © 2008–2014 The Apache Software Foundation. All rights reserved.