experanto.intervals.find_complement_of_interval_array

find_complement_of_interval_array(start, end, interval_array)[source]

Find gaps not covered by intervals within a range.

Parameters:
  • start (float) – Start of the range.

  • end (float) – End of the range.

  • interval_array (list of TimeInterval) – Intervals to find the complement of.

Returns:

Intervals representing uncovered gaps in [start, end].

Return type:

list of TimeInterval