dirconn.PSI#

class dirconn.PSI(segment_length: float | None = None, time_halfbandwidth: float = 4.0, bands: Any = None)#

Phase slope index (Nolte et al. 2008) in one or more frequency bands.

values[i, j, b] = Im(sum_f conj(C_ij(f)) C_ij(f + df)) over the neighbouring frequency bins of band b: the slope of the coherency phase across the band, weighted by the coherence. It is antisymmetric and positive when i leads j (the phase of C_ij grows with frequency when j is a delayed copy of i). The value is not normalised by its standard deviation (as in mne_connectivity.phase_slope_index); use dirconn.significance_test() for inference. The diagonal is undefined (NaN).

Parameters:
  • bands (sequence of str or (float, float)) – Required. Each band is a name from dirconn.BANDS or (fmin, fmax) in Hz, both limits inclusive, and must hold at least two frequency bins. The band centres become the freq coordinate and must increase; the band edges are recorded in the provenance.

  • segment_length – As for ImCoh.

  • time_halfbandwidth – As for ImCoh.

__init__(segment_length: float | None = None, time_halfbandwidth: float = 4.0, bands: Any = None) → None#

Methods

__init__([segment_length, ...])

fit(data)

Estimate directed connectivity.

get_params()

Return the constructor parameters as a dictionary.

Attributes

bands

info

segment_length

time_halfbandwidth