pyriemann.utils.distance.distance_riemann

pyriemann.utils.distance.distance_riemann(A, B)[source]

Riemannian distance between two covariance matrices A and B.

\[d = {\left( \sum_i \log(\lambda_i)^2 \right)}^{-1/2}\]

where \(\lambda_i\) are the joint eigenvalues of A and B

Parameters:
  • A – First covariance matrix
  • B – Second covariance matrix
Returns:

Riemannian distance between A and B