mne.spatial_dist_adjacency#
- mne.spatial_dist_adjacency(src, dist, verbose=None)[source]#
Compute adjacency from distances in a source space.
- Parameters
- srcinstance of
SourceSpaces
The source space must have distances between vertices computed, such that src[‘dist’] exists and is useful. This can be obtained with a call to
mne.setup_source_space()
with theadd_dist=True
option.- dist
float
Maximal geodesic distance (in m) between vertices in the source space to consider neighbors.
- verbosebool |
str
|int
|None
Control verbosity of the logging output. If
None
, use the default verbosity level. See the logging documentation andmne.verbose()
for details. Should only be passed as a keyword argument.
- srcinstance of
- Returns
- adjacency
coo_matrix
The adjacency matrix describing the spatial graph structure.
- adjacency