tensorpac.methods.norm_direct_pac_nb

tensorpac.methods.norm_direct_pac_nb(pha, amp, p=0.05)[source]

Numba-based Normalized direct Pac (ndPAC).

Parameters
pha, amparray_like

Respectively the arrays of phases of shape (n_pha, n_epochs, n_times) and the array of amplitudes of shape (n_amp, n_epochs, n_times). Both arrays should be of type float64 (np.float64)

pfloat | .05

P-value to use for thresholding. Sub-threshold PAC values will be set to 0. To disable this behavior (no masking), use p=1 or p=None. Should be a np.float64

Returns
pacarray_like

Array of phase amplitude coupling of shape (n_amp, n_pha, …)

References

Ozkurt et al. [13]