visbrain.objects.VolumeObj.extract_activity

VolumeObj.extract_activity(xyz, radius=2.0)[source][source]

Extract activity of a volume around (x, y, z) points.

Parameters:
xyz : array_like

Array of (x, y, z) coordinates of shape (n_sources, 3)

radius : float | 2.

Radius of the sphere around each point.

Returns:
act : array_like

Activity array of shape (n_sources,)