cogpy.measures.spatial
Spatial signal measures for 2D electrode grids.
Status
STATUS: ACTIVE Reason: Spatial characterization measures for iEEG grid recordings. Superseded by: n/a Safe to remove: no
- Grid convention:
grid : (…, AP, ML) — AP rows, ML columns Batch dims (time, freq, etc.) are leading; spatial axes are always last. Scalar measures reduce (AP, ML) → scalar, so output shape is (…). 2D input returns a Python float for backward compatibility.
Functions
|
Current Source Density (CSD) via 2D Laplacian of surface potential. |
|
Gradient anisotropy ratio for a spatial grid. |
|
Row and column energy outlier scores for a spatial grid. |
|
Moran's I spatial autocorrelation for a scalar grid map. |
|
Mean coherence as a function of inter-electrode distance. |
|
Excess kurtosis of the spatial amplitude distribution. |
|
Fraction of total grid energy in the top-k electrodes. |
|
Compute scalar spatial summaries preserving non-spatial coords. |