|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.mahout.vectorizer.TF
public class TF
org.apache.mahout.utils.vectors.Weight
based on term frequency only
Constructor Summary | |
---|---|
TF()
|
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 |
---|
public TF()
Method Detail |
---|
public double calculate(int tf, int df, int length, int numDocs)
Weight
calculate
in interface Weight
tf
- term freqdf
- doc freqlength
- Length of the documentnumDocs
- the total number of docs
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |