bnl.core

Core data structures for monotonic boundary casting.

Classes

Boundary(time)

A divider in the flow of time in seconds, quantized to 1e-5 seconds.

RatedBoundary(time, salience)

A boundary with a continuous measure of importance or salience.

LeveledBoundary(time, level)

A boundary that exists in a monotonic hierarchy.

TimeSpan(start, end, *[, name])

An abstract base class for objects that represent a span of time.

Segment(bs[, labels, name])

An ordered sequence of boundaries that partition a span into labeled sections.

MultiSegment([raw_layers, name])

The primary input object for analysis, containing multiple Segment layers.

BoundaryContour(bs, *[, name])

An intermediate, purely structural representation of boundary salience over time.

BoundaryHierarchy(bs, *[, name])

The structural output of the monotonic casting process.