mne.stats.combine_adjacency

mne.stats.combine_adjacency(*structure)[source]

Create a sparse binary adjacency/neighbors matrix.

Parameters
*structurelist

The adjacency along each dimension. Each entry can be:

  • ndarray or sparse matrix

    A square binary adjacency matrix for the given dimension.

  • int

    The number of elements along the given dimension. A lattice adjacency will be generated.

Returns
adjacencyscipy.sparse.coo_matrix, shape (n_features, n_features)

The adjacency matrix.

Examples using mne.stats.combine_adjacency