eelbrain.Sensor.neighbors

Sensor.neighbors(self, connect_dist)

Find neighboring sensors.

Parameters:
connect_dist : scalar

For each sensor, neighbors are defined as those sensors within connect_dist times the distance of the closest neighbor.

Returns:
neighbors : dict

Dictionaries whose keys are sensor indices, and whose values are lists of neighbors represented as sensor indices.