pyampact.alignmentUtils.maptimes

pyampact.alignmentUtils.maptimes(t, intime, outtime)[source]

Map onset/offset times using linear interpolation from intime to outtime.

Parameters:

t (np.ndarray of shape (N, 2)) – Each row contains [onset, offset].

Returns:

Mapped onset and offset times.

Return type:

np.ndarray of shape (N, 2)