tensorpac.methods.erpac

tensorpac.methods.erpac(pha, amp)[source]

Event-Related Phase Amplitude Coupling.

This function computed the correlation coefficient between a circular and a linear random variable at each time point and across trials. Adapted from the function circ_corrcc Circular Statistics Toolbox for Matlab By Philipp Berens, 2009 [3]. This function is an adaptation of Voytek, 2013 [12] for tensors.

Parameters
pha, amparray_like

Respectively the arrays of phases of shape (n_pha, …, n_epochs) and the array of amplitudes of shape (n_amp, …, n_epochs).

Returns
rhoarray_like

Array of correlation coefficients of shape (n_amp, n_pha, …)

pvalarray_like

Array of p-values of shape (n_amp, n_pha, …).

References

Voytek et al. 2013 [12]