ffrprep.analysis.compute_power

ffrprep.analysis.compute_power(avg_evoked, f_low=90, f_high=110, t_low=0.1, t_high=0.2)[source]

Compute the average oscillatory power of a given frequency band.

Parameters:
  • avg_evoked (mne.Evoked object) – Evoked object to calculate the average power of.

  • f_low (float) – Lower bound of the frequency band of interest (Hz).

  • f_high (float) – Upper bound of the frequency band of interest (Hz).

  • t_low (float) – Start of the time window of interest (in seconds).

  • t_high (float) – End of the time window of interest (in seconds).

Returns:

average_power – Value representing the mean power of the first channel specified within the given time and frequency ranges.

Return type:

float

Examples

Compute average gamma-band (90-110 Hz) power between 100-200 ms

>>> power_val = compute_power(evoked, f_low=90, f_high=110,
...                           t_low=0.1, t_high=0.2)
>>> print(power_val)
2.347e-10