I have this problem when calculating Jaccard distance for sets (bit vectors):
p1 = 10111;
p2 = 10011.
Intersection size = 3; (How could we find out?)
Pool size = 4, (How could we find out?)
similarity Jaccard = (intersection / union) = 3/4.
Jaccard Distance = 1 - (similarity to Jaccard) = (1-3 / 4) = 1/4.
But I do not understand how we can detect the "intersection and " union "of two vectors.
Please help me.
Thank you so much.
source
share