tonic.functional.refractory_period_numpy#
- tonic.functional.refractory_period_numpy(events: ndarray, refractory_period: float)[source]#
Sets a refractory period for each pixel, during which events will be ignored/discarded. We keep events if:
\[t_n - t_{n-1} > t_{refrac}\]- Parameters:
events (ndarray) – ndarray of shape [num_events, num_event_channels]
refractory_period (float) – refractory period for each pixel in microseconds
- Returns:
filtered set of events.