signals.SegmentationType

signals.SegmentationType(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 for graph nodes that define a PWC signal containing a constant part.

Variables:
  • 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.