Pairwise similarity and similarity to a set.

Under development