pyriemann.utils.geodesic.geodesic_euclid¶
- pyriemann.utils.geodesic.geodesic_euclid(A, B, alpha=0.5)¶
Euclidean geodesic between matrices.
The matrix at position \(\alpha\) on the Euclidean geodesic between two matrices \(\mathbf{A}\) and \(\mathbf{B}\) is:
\[\mathbf{C} = (1-\alpha) \mathbf{A} + \alpha \mathbf{B}\]\(\mathbf{C}\) is equal to \(\mathbf{A}\) if \(\alpha\) = 0, and \(\mathbf{B}\) if \(\alpha\) = 1.
- Parameters:
- Andarray, shape (…, n, m)
First matrices.
- Bndarray, shape (…, n, m)
Second matrices.
- alphafloat, default=0.5
The position on the geodesic.
- Returns:
- Cndarray, shape (…, n, m)
Matrices on the Euclidean geodesic.