pyeeg.cca.CCA_Estimator.plot_activation_map
- CCA_Estimator.plot_activation_map(pos, n_comp=1, lag=0)
Plot the activation map from the spatial filter.
Computes the activation map
a_map = (y.T @ y) @ coefResponse_ @ (s_hat.T @ s_hat)^-1(withs_hat = y @ coefResponse_) and plots it as topographic maps, one per canonical component. When the response was time-lagged (lag_y) or a filterbank was used,a_mapis reshaped over lags/frequencies and only the map atlagis shown.- Parameters:
pos (array-like (nchans x 2)) – Channel positions (x, y) used for the topographic plots.
n_comp (int, default: 1) – Number of canonical components to plot.
lag (int, default: 0) – Index of the lag (or frequency band when a filterbank is used) at which the activation map is plotted. Only relevant when the response was time-lagged or a filterbank was used.