tensorpac.methods.normalize

tensorpac.methods.normalize(idn, pac, surro)[source]

Normalize the phase amplitude coupling.

This function performs inplace normalization (i.e. without copy of array)

Parameters
idnint

Normalization method to use :

  • 1 : substract the mean of surrogates

  • 2 : divide by the mean of surrogates

  • 3 : substract then divide by the mean of surrogates

  • 4 : substract the mean then divide by the deviation of surrogates

pacarray_like

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

surroarray_like

Array of surrogates of shape (n_perm, n_amp, n_pha, …)