code: def cluster_reduce(idx, snr, window_size):
      
      ind = findchirp_cluster_over_window(idx, snr, window_size)
      return idx.take(ind), snr.take(ind)
docs: Reduce the events by clustering over a window
  
      Parameters
      -----------
      indices: Array
          The list of indices of the SNR values
      snr: Array
          The list of SNR value
      window_size: int
          The size of the window in integer samples.
  
      Returns
      -------
      indices: Array
          The list of indices of the SNR values
      snr: Array
          The list of SNR values