mne_connectivity.degree#

mne_connectivity.degree(connectivity, threshold_prop=0.2)[source]#

Compute the undirected degree of a connectivity matrix.

Parameters:
connectivityndarray, shape (n_nodes, n_nodes)

The connectivity matrix.

threshold_propfloat

The proportion of edges to keep in the graph before computing the degree. The value should be between 0 and 1.

Returns:
degreendarray, shape (n_nodes,)

The computed degree.

Notes

During thresholding, the symmetry of the connectivity matrix is auto-detected based on numpy.allclose() of it with its transpose.

Examples using mne_connectivity.degree#

Compute envelope correlations in source space

Compute envelope correlations in source space

Compute envelope correlations in volume source space

Compute envelope correlations in volume source space