neuralib.util.interp.interp_timestamp
- neuralib.util.interp.interp_timestamp(timestamp, t0, t1, sampling_rate)[source]
Create interpolated time and value(01) array from event timestamp
Dimension parameters:
T = number of timestamp
N’ = number of interpolated sample points
- Parameters:
timestamp (ndarray) – Array of event timestamps in seconds. Array[float, T]
t0 (float) – Start time in seconds
t1 (float) – End time in seconds
sampling_rate (float) – Sampling rate in Hz
- Returns:
Tuple of time array (Array[float, N’]) and event array (Array[float, N’])
- Return type:
tuple[ndarray, ndarray]