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 bandb: the slope of the coherency phase across the band, weighted by the coherence. It is antisymmetric and positive whenileadsj(the phase ofC_ijgrows with frequency whenjis a delayed copy ofi). The value is not normalised by its standard deviation (as inmne_connectivity.phase_slope_index); usedirconn.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.BANDSor(fmin, fmax)in Hz, both limits inclusive, and must hold at least two frequency bins. The band centres become thefreqcoordinate 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
bandsinfosegment_lengthtime_halfbandwidth