Package generic.lsh.vector
Class VectorCompare
java.lang.Object
generic.lsh.vector.VectorCompare
Class for containing intermediate results of doing the LSHVector compare operation
-
Field Summary
Modifier and TypeFieldDescriptionint
int
int
double
int
int
int
int
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
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 resulttoString()
-
Field Details
-
dotproduct
public double dotproduct -
acount
public int acount -
bcount
public int bcount -
intersectcount
public int intersectcount -
min
public int min -
max
public int max -
numflip
public int numflip -
diff
public int diff
-
-
Constructor Details
-
VectorCompare
public VectorCompare()
-
-
Method Details
-
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
-