cogpy.brainstates.intervals

Functions

check_intervals_disjoint(intervals)

Checks if a list of intervals is disjoint.

map_numbers_to_disjoint_intervals(numbers, ...)

Maps indices of a sorted list of numbers to the indices of disjoint intervals they belong to.

map_numbers_to_intervals(numbers, intervals)

Maps indices of a sorted list of numbers to the indices of intervals they belong to.

perievent_epochs(xsig, events, fs, *, pre, post)

Extract signal epochs time-locked to events.

restrict(xsig, intervals, *[, time_dim])

Return signal samples whose time coordinate falls within any interval.

subtract_intervals(a, b)

Subtract intervals in a from intervals in b.