pyriemann.utils.mean.mean_euclid¶
- pyriemann.utils.mean.mean_euclid(X, sample_weight=None)¶
Mean of matrices according to the Euclidean metric.
\[\mathbf{M} = \sum_i w_i \ \mathbf{X}_i\]This mean is also called arithmetic.
- Parameters:
- Xndarray, shape (n_matrices, n, m)
Set of matrices.
- sample_weightNone | ndarray, shape (n_matrices,), default=None
Weights for each matrix. If None, it uses equal weights.
- Returns:
- Mndarray, shape (n, m)
Euclidean mean.
See also