lfp_phase_coherence

lfp_phase_coherence#

class braintools.metric.lfp_phase_coherence(lfp_signals, dt, freq_band=(8, 12))#

Compute phase coherence between multiple LFP signals in a frequency band.

Parameters:
  • lfp_signals (Array | ndarray | bool | number | bool | int | float | complex | Quantity) – Multiple LFP signals with shape (n_time, n_channels).

  • dt (float) – Sampling interval in seconds.

  • freq_band (tuple) – Frequency band for phase extraction (e.g., alpha band).

Returns:

phase_coherence_matrix – Phase coherence matrix with shape (n_channels, n_channels). Values range from 0 (no coherence) to 1 (perfect coherence).

Return type:

Array