pyriemann.utils.distance.distance_logeuclid

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

Log Euclidean distance between two covariance matrices A and B.

\[d = \Vert \log(\mathbf{A}) - \log(\mathbf{B}) \Vert_F\]
Parameters:
  • A – First covariance matrix
  • B – Second covariance matrix
Returns:

Log-Eclidean distance between A and B