abspeak#

abspeak(data, frames_per_epoch=None)#

Return absolute peaks, 1-based frames, and signs for each epoch.

Frames start at 1. NaNs are ignored when finite or infinite observations exist. An all-NaN channel or epoch returns NaN amplitude, frame -1, and sign NaN; EEGLAB’s sort still reports a frame in that case. Tied peaks use the last frame. frames_per_epoch must divide the data length. EEGLAB prints a message and returns no outputs when it does not.

Parameters:
  • data (Any)

  • frames_per_epoch (int | None)

Return type:

tuple[ndarray, ndarray, ndarray]