beacon-biosignals / TimeSpans.jl

A Julia package that provides a `TimeSpan` type for representing a continuous span between two points in time.
Other
6 stars 2 forks source link

Add invert_spans #36

Closed mich11 closed 2 years ago

mich11 commented 2 years ago

This adds invert_spans(spans, parent_span), which returns a vector of TimeSpans that represent the gaps between an input vector of TimeSpans spans that are contained by the TimeSpan parent_span.

This function has been used in a couple of different internal projects at Beacon and was mentioned in #10 a while ago.

WIP - I still need to add tests