The Boulder Opal Toolkits are currently in beta phase of development. Breaking changes may be introduced.

class SegmentationType(value, names=None, *, module=None, qualname=None, type=None, start=1, boundary=None)

An enumeration of segmentation types for piecewise-constant signals.

You can use this Enum to specify the segmentation type in the graph nodes when defining a PWC signal containing a constant part.

  • UNIFORM – A uniform segmentation distributes the piecewise-constant segments uniformly along the signal’s duration. This segmentation type is more efficient when combining different signals, as their segmentations will match.

  • MINIMAL – A minimal segmentation represents constant parts of the piecewise-constant function with a minimal number of segments (typically one or two), reserving most of the segments for the non-constant parts. This segmentation type might be preferred when only a single signal is present in the system, as it leads to a more efficient sampling of the non-constant parts. However, combining signals with different segmentations can lead to uneven sampling and increased computation time due to the increase in number of segments.