pyriemann.geometry.tangentspace.log_map_euclid

pyriemann.geometry.tangentspace.log_map_euclid(X, Cref)[source]

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

Added in version 0.4.

Changed in version 0.12: Add support for NumPy and PyTorch.