pyeeg.preprocess.get_power

pyeeg.preprocess.get_power(signals, decibels=False, win=125, axis=-1, n_jobs=-1)

Compute the (log) power modulation of a signal by taking the smooth moving average of its square values.

Parameters:
  • signals (ndarray (nsamples, nchans)) – Input signals

  • decibels (bool) – If True, will take the log power (default False).

  • win (int) – Length of smoothing window for moving average (default 125) in samples.

  • axis (int) – Axis on which to apply the transform

  • n_jobs (int) – Number of cores to be used (Parrallel job).

Returns:

out

Return type:

ndarray (nsamples, nchans)