pyriemann.utils.mean.mean_euclid

pyriemann.utils.mean.mean_euclid(covmats, sample_weight=None)

Mean of matrices according to the Euclidean metric.

\[\mathbf{C} = \sum_i w_i \ \mathbf{X}_i\]

This mean is also called arithmetic.

Parameters:
covmatsndarray, 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:
Cndarray, shape (n, m)

Euclidean mean.

See also

mean_covariance