# pyriemann.utils.mean.mean_euclid¶

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

Return the mean covariance matrix according to the euclidean metric :

$\mathbf{C} = \frac{1}{N} \sum_i \mathbf{C}_i$
Parameters: covmats – Covariance matrices set, Ntrials X Nchannels X Nchannels sample_weight – the weight of each sample the mean covariance matrix