osl_dynamics.analysis.connectivity.spectral_reordering#

osl_dynamics.analysis.connectivity.spectral_reordering(corr_mat)#

Spectral re-ordering for correlation matrices.

Parameters:
corr_matnp.ndarray

Correlation matrix. Shape must be (n_channels, n_channels).

Returns:
reorder_corr_matnp.ndarray

Re-ordered correlation matrix. Shape is (n_channels, n_channels).

ordernp.ndarray

New ordering. Shape is (n_channels,).