pyriemann.utils.covariance.get_nondiag_weight

pyriemann.utils.covariance.get_nondiag_weight(X)

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)

The set of square matrices, at least 2D ndarray.

Returns
weightsndarray, shape (…,)

The non-diagonality weights for matrices.

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.