dirconn.PDC#

class dirconn.PDC(order: int | str = 'bic', max_order: int = 10, n_freqs: int = 128, fmax: float | None = None, freqs: Any = None, ridge: float = 0.0, demean: bool = True, n_folds: int = 5, check_order_stability: bool = True, check_whiteness: bool = True, squared: bool = True, standardize: bool = True)#

Partial directed coherence (Baccala and Sameshima), a predictive spectral measure.

values[i, j, f] is the share of the outflow of channel i at frequency f that goes to channel j, normalised over the targets of each source. Because it is built from the model coefficients rather than their inverse, it reflects direct influences only. The values depend on the relative scale of the channels; see GPDC for the version that does not. The parameters not listed below are those of DTF.

Parameters:
  • squared (bool) – True (default): the squared form, whose values sum to 1 over the targets. False: the amplitude form, its square root.

  • standardize (bool) – Divide every channel by its standard deviation before fitting. The factors are recorded in the provenance.

__init__(order: int | str = 'bic', max_order: int = 10, n_freqs: int = 128, fmax: float | None = None, freqs: Any = None, ridge: float = 0.0, demean: bool = True, n_folds: int = 5, check_order_stability: bool = True, check_whiteness: bool = True, squared: bool = True, standardize: bool = True) → None#

Methods

__init__([order, max_order, n_freqs, fmax, ...])

fit(data)

Estimate directed connectivity.

get_params()

Return the constructor parameters as a dictionary.

Attributes

check_order_stability

check_whiteness

demean

fmax

freqs

info

max_order

n_folds

n_freqs

order

ridge

squared

standardize