dominosee.es._extract_event_positions

dominosee.es._extract_event_positions(binary_series, time_indices, max_count)[source]

Extract event positions with fixed output size, converting to time indices

Parameters:
  • binary_series (ndarray) – 1D binary time series (0s and 1s)

  • time_indices (ndarray) – Array of time indices corresponding to binary_series

  • max_count (int) – Maximum number of events to extract

Returns:

ndarray – Event positions (time indices) with fixed output size