borsar.csd.current_source_density

borsar.csd.current_source_density(inst, G, H, smoothing=1e-05, head_radius=1.0)[source]

Compute current source density for given mne object instance.

Note that this function works in-place.

Parameters:
inst : mne object instance

Raw or Epochs data.

G : numpy matrix

G matrix.

H : numpy matrix

H matrix.

smoothing : float

CSD smoothing. Defaults to 1.0e-5.

head_radius : float

Radius of the head sphere.

Returns:
inst : mne object instance

The data with CSD reference.