Drop-in replacement for mahalanobis that handles
singular (rank-deficient) covariance matrices by falling back to the
Moore–Penrose pseudoinverse via MASS::ginv.
Drop-in replacement for mahalanobis that handles
singular (rank-deficient) covariance matrices by falling back to the
Moore–Penrose pseudoinverse via MASS::ginv.