tensorpac.methods.phase_locking_value_nb

tensorpac.methods.phase_locking_value_nb(pha, pha_amp)[source]

Numba-based Phase Locking-Value (PLV).

In order to measure the phase locking value, the phase of the amplitude of the higher-frequency signal must be provided, and not the amplitude as in most other PAC functions.

Parameters
pha, pha_amparray_like

Respectively the arrays of phases of shape (n_pha, n_epochs, n_times) for the lower frequency and the array of phase of the amplitude signal of shape (n_pha_amp, n_epochs, n_times) for the higher frequency. Both arrays should be of type float64 (np.float64)

Returns
pacarray_like

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

References

Penny et al. 2008 [10], Lachaux et al. 1999 [8]