pyampact.alignmentUtils.maptimes

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

Map the times in t according to the mapping that each point in intime corresponds to that value in outtime.

Parameters:
  • t (array-like) – The input times to be mapped. This can be a list or a numpy array of time values.

  • intime (array-like) – The reference input time points. Each point corresponds to a value in outtime.

  • outtime (array-like) – The corresponding output time points that map to the values in intime.

Returns:

An array of the mapped times, where each time in t is replaced by its corresponding value in outtime based on the mapping provided by intime. If a time in t does not have a corresponding intime, it will be returned unchanged.

Return type:

np.ndarray