Package generic.lsh.vector
Class VectorCompare
- java.lang.Object
-
- generic.lsh.vector.VectorCompare
-
public class VectorCompare extends java.lang.ObjectClass for containing intermediate results of doing the LSHVector compare operation
-
-
Field Summary
Fields Modifier and Type Field Description intacountintbcountintdiffdoubledotproductintintersectcountintmaxintminintnumflip
-
Constructor Summary
Constructors Constructor Description VectorCompare()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidfillOut()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.StringtoString()
-
-
-
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:
toStringin classjava.lang.Object
-
-