General array operations#

Utility functions to perform common array operations.

Functions#

sliding_window_view(data, ...)

Create a sliding window view of the data.

bool_array_to_start_end_array(bool_array)

Find regions in bool array and convert those to start-end indices.

start_end_array_to_bool_array(start_end_array)

Convert a start-end list to a bool array.

merge_intervals(input_array[, gap_size])

Merge intervals that are overlapping and that are a distance less or equal to gap_size from each other.