pyriemann.geometry.covariance.get_nondiag_weight¶
- pyriemann.geometry.covariance.get_nondiag_weight(X)[source]¶
Compute non-diagonality weights of a set of square matrices.
Compute non-diagonality weights of a set of square matrices, following Eq(B.1) in [1].
- Parameters:
- Xndarray, shape (…, n, n)
Set of square matrices.
- Returns:
- weightsndarray, shape (…,)
Non-diagonality weights for matrices.
Notes
Added in version 0.2.7.
Changed in version 0.12: Add support for NumPy and PyTorch.
References
[1]On the blind source separation of human electroencephalogram by approximate joint diagonalization of second order statistics M. Congedo, C. Gouy-Pailler, C. Jutten. Clinical Neurophysiology, Elsevier, 2008, 119 (12), pp.2677-2686.