code: public double jaccardSimilarity(BitVector v2) {
      return BitsUtil.intersectionSize(bits, v2.bits) / (double) BitsUtil.unionSize(bits, v2.bits);
    }
docs: Compute the Jaccard similarity of two bit vectors.
  
  @param v2 Second bit vector
  @return Jaccard similarity (intersection / union)