Package generic.lsh.vector
Class VectorCompare
- java.lang.Object
-
- generic.lsh.vector.VectorCompare
-
public class VectorCompare extends java.lang.Object
Class for containing intermediate results of doing the LSHVector compare operation
-
-
Field Summary
Fields Modifier and Type Field Description int
acount
int
bcount
int
diff
double
dotproduct
int
intersectcount
int
max
int
min
int
numflip
-
Constructor Summary
Constructors Constructor Description VectorCompare()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
fillOut()
Assume the dotproduct, acount, bcount, and intersectcount are filled in Calculate the remaining values: min, max, numflip, and diff Assume small vector is produced by flipping and removing hashes from big vector Calculate the number of flipped hashes (numflip) from a VectorCompare result Calculate the difference in the number of hashes (diff) from a VectorCompare resultjava.lang.String
toString()
-
-
-
Method Detail
-
fillOut
public void fillOut()
Assume the dotproduct, acount, bcount, and intersectcount are filled in Calculate the remaining values: min, max, numflip, and diff Assume small vector is produced by flipping and removing hashes from big vector Calculate the number of flipped hashes (numflip) from a VectorCompare result Calculate the difference in the number of hashes (diff) from a VectorCompare result
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-