pyriemann.utils.mean.mean_poweuclid¶
- pyriemann.utils.mean.mean_poweuclid(X, p, *, sample_weight=None)¶
Mean of SPD/HPD matrices according to the power Euclidean metric.
Power Euclidean mean of order \(p\) is [1]:
\[\mathbf{M} = \left( \sum_i w_i \ \mathbf{X}_i^p \right)^{1/p}\]- Parameters:
- Xndarray, shape (n_matrices, n, n)
Set of SPD/HPD matrices.
- pfloat
Exponent.
- sample_weightNone | ndarray, shape (n_matrices,), default=None
Weights for each matrix. If None, it uses equal weights.
- Returns:
- Mndarray, shape (n, n)
Power Euclidean mean.
See also
References
[1]Power Euclidean metrics for covariance matrices with application to diffusion tensor imaging I.L. Dryden, X. Pennec, & J.M. Peyrat. arXiv, 2010.