pyriemann.utils.tangentspace.log_map_euclid

pyriemann.utils.tangentspace.log_map_euclid(X, Cref)

Project matrices in tangent space by Euclidean logarithmic map.

The projection of a matrix \(\mathbf{X}\) from manifold to tangent space by Euclidean logarithmic map according to a reference matrix \(\mathbf{C}_\text{ref}\) is:

\[\mathbf{X}_\text{new} = \mathbf{X} - \mathbf{C}_\text{ref}\]
Parameters:
Xndarray, shape (…, n, m)

Matrices in manifold.

Crefndarray, shape (n, m)

Reference matrix.

Returns:
X_newndarray, shape (…, n, m)

Matrices projected in tangent space.

Notes

New in version 0.4.