calculate distance for full covariance type