tfrStats.get_pvals_whole module

tfrStats.get_pvals_whole.get_pvals_whole(tfr_emp, tfr_null, fband)[source]

Get p-values from whole null distribution

This functions pools the averaged null distribution values and computes the p-values for each frequency and time bin using the empirical cumulative distribution method.

Todo

  • Adapt the function to work with N-dimensional arrays from different null realizations.

  • Add the option to use the min or max values from the null distribution or the whole distribution.

Parameters:
  • tfr (float) – empirical time frequency representation (i.e. 30, 12, 16, 113 ).

  • null_tfr (float) – nul time frequency representation (i.e. 30, 12, 16, 113 ).

Returns:

statistical map of p-values for each frequency-time or space-time bin.

Return type:

float

@author: Nicolas Gravel, 19.09.2023