Class DocVector
- java.lang.Object
-
- org.apache.nutch.scoring.similarity.cosine.DocVector
-
public class DocVector extends Object
-
-
Field Summary
Fields Modifier and Type Field Description HashMap<String,Integer>
termFreqVector
HashMap<Integer,Long>
termVector
-
Constructor Summary
Constructors Constructor Description DocVector()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description float
dotProduct(DocVector docVector)
float
getL2Norm()
void
setTermFreqVector(HashMap<String,Integer> termFreqVector)
void
setVectorEntry(int pos, long freq)
-