public class DocVector extends Object
Modifier and Type | Field and Description |
---|---|
HashMap<String,Integer> |
termFreqVector |
HashMap<Integer,Long> |
termVector |
Constructor and Description |
---|
DocVector() |
Modifier and Type | Method and Description |
---|---|
float |
dotProduct(DocVector docVector) |
float |
getL2Norm() |
void |
setTermFreqVector(HashMap<String,Integer> termFreqVector) |
void |
setVectorEntry(int pos,
long freq) |
Copyright © 2021 The Apache Software Foundation