It is frequently important to determine the coherence of a matrix by finding the maximum pairwise correlation between all its column vectors. Similarly, when working with a union of subspaces of a Hilbert space it would be convenient to have a measure of similarity between two different subspaces. Does such a measure exist? And how is it computed? Assume I have an orthonormal basis for each subspace, but the subspaces are not necessarily the same dimension.
Importantly, I do not want this to be a supremum measure; i.e., if two subspaces share a single basis vector, they should not necessarily have a correlation of 1.