cogpy.measures.coupling

Event-train and spectral coupling measures.

STATUS: ACTIVE Reason: Cross-correlogram, PETH, and spectral power cross-correlation for

pixecog coupling analysis (H1, H2, H4, H5, H6).

Superseded by: n/a Safe to remove: no

All functions are pure — array/xarray in, array/xarray out. No file I/O. EventCatalog timestamps or raw numpy arrays are accepted interchangeably.

References

Sirota et al. (2003), Wierzynski et al. (2009), Peyrache et al. (2011), Siapas & Wilson (1998).

Functions

cross_correlogram(events_a, events_b, *, ...)

Cross-correlogram of two event trains.

peri_event_histogram(spikes, events, *, ...)

Peri-event time histogram (PETH) of spike times aligned to event timestamps.

spectral_power_xcorr(power_a, power_b, *, ...)

Cross-correlation of two spectral power time series.