Weighted Jaccard index for categorical matrix data
The Jaccard index measures the similarity of discrete entries in a matrix by the intersection of a union. Formally:
J(A,B)=|A∩B||A∪B|=|A∩B||A|+|B|−|A∩B|
This script provides a weighted version of this coefficient.