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>termFreqVectorHashMap<Integer,Long>termVector
-
Constructor Summary
Constructors Constructor Description DocVector()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description floatdotProduct(DocVector docVector)floatgetL2Norm()voidsetTermFreqVector(HashMap<String,Integer> termFreqVector)voidsetVectorEntry(int pos, long freq)
-