mne.stats.combine_adjacency¶
-
mne.stats.
combine_adjacency
(*structure)[source]¶ Create a sparse binary adjacency/neighbors matrix.
- Parameters
- *structure
list
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.
- *structure
- Returns
- adjacency
scipy.sparse.coo_matrix
, shape (n_features, n_features) The adjacency matrix.
- adjacency