dirconn.DTF#

class dirconn.DTF(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, standardize: bool = True)#

Directed transfer function (Kaminski and Blinowska), a predictive spectral measure.

values[i, j, f] is the share of the signal reaching channel j at frequency f that comes from channel i: the squared transfer function normalised over the sources of each target, so the values over all sources sum to 1. It mixes direct and indirect paths. The diagonal (a channel’s share of itself) is defined, unlike in GC.

Parameters:
  • order (int or {"aic", "bic", "hqc", "cv"}) – Fixed VAR order, or the criterion that selects it once on the model of all channels.

  • max_order (int) – Largest candidate order when order is a criterion.

  • n_freqs – Frequency axis: n_freqs points from 0 to fmax (default the Nyquist frequency), or an explicit freqs in Hz.

  • fmax – Frequency axis: n_freqs points from 0 to fmax (default the Nyquist frequency), or an explicit freqs in Hz.

  • freqs – Frequency axis: n_freqs points from 0 to fmax (default the Nyquist frequency), or an explicit freqs in Hz.

  • ridge – As for dirconn.fit_var() and dirconn.select_order().

  • demean – As for dirconn.fit_var() and dirconn.select_order().

  • n_folds – As for dirconn.fit_var() and dirconn.select_order().

  • standardize (bool) – Divide every channel by its standard deviation before fitting, because the result depends on the relative scale of the channels. The factors are recorded in the provenance.

  • check_order_stability (bool) – Run the order-stability check and the residual whiteness check, as for GC. The resampling tests switch both off for the resampled fits.

  • check_whiteness (bool) – Run the order-stability check and the residual whiteness check, as for GC. The resampling tests switch both off for the resampled fits.

__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, 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

standardize