pyriemann.utils.mean.mean_identity

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

Identity matrix corresponding to the matrices dimension.

\[\mathbf{C} = \mathbf{I}_c\]
Parameters
covmatsndarray, shape (n_matrices, n_channels, n_channels)

Set of SPD matrices.

sample_weightNone

Not used, here for compatibility with other means.

Returns
Cndarray, shape (n_channels, n_channels)

Identity matrix.