eegprep.timewarp#

eegprep.timewarp(ev_latency, new_latency)#

Return the linear interpolation matrix that warps event latencies.

ev_latency and new_latency use EEGLAB’s 1-based frame indexing. Multiplying the returned matrix by a column time series maps samples so the original event frames align with the requested event frames.

Parameters:
  • ev_latency (Any)

  • new_latency (Any)

Return type:

ndarray