tonic.functional.time_jitter
#
Module Contents#
Functions#
|
Changes timestamp for each event by drawing samples from a Gaussian distribution and adding |
- tonic.functional.time_jitter.time_jitter_numpy(events: numpy.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 (numpy.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.