tensorpac.methods.heights_ratio_nb

tensorpac.methods.heights_ratio_nb(pha, amp, n_bins=18)[source]

Numba-based Heights ratio (HR).

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)

n_binsint | 18

Number of bins to binarize the amplitude according to phase intervals (should be np.int64)

Returns
pacarray_like

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

References

Lakatos et al. 2005 [9]