tonic.functional.time_jitter_numpy#
- tonic.functional.time_jitter_numpy(events: ndarray, std: float = 1, clip_negative: bool = False, sort_timestamps: bool = False)[source]#
Changes timestamp for each event by drawing samples from a Gaussian distribution and adding them to each timestamp.
- Parameters:
events (ndarray) – ndarray of shape [num_events, num_event_channels]
std (float) – the standard deviation of the time jitter
clip_negative (bool) – drops events that have negative timestamps
sort_timestamps (bool) – sort the events by timestamps after jittering
- Returns:
temporally jittered set of events.