Linear dimension reduction and the corresponding subspaces can be uniquely defined using orthogonal projection matrices. This package provides tools to compute distances between such subspaces and to compute the average subspace.
The function computes distances between orthogonal projection matrices that might have different ranks. Different weight functions for the ranks are available.