current_source_density

current_source_density#

class braintools.metric.current_source_density(lfp_laminar, electrode_spacing)#

Compute current source density (CSD) from laminar LFP recordings.

Parameters:
  • lfp_laminar (Array | ndarray | bool | number | bool | int | float | complex | Quantity) – Laminar LFP data with shape (n_time, n_electrodes). Electrodes should be ordered from superficial to deep layers.

  • electrode_spacing (float) – Spacing between electrodes in mm.

Returns:

csd – Current source density with shape (n_time, n_electrodes-2). First and last electrodes are excluded due to boundary conditions.

Return type:

Array