neuralib.signal.segement
- class neuralib.signal.segement.Segment[source]
DEPRECATED.Segment container class
- classmethod from_logical(y, x=None, interpolate=False)[source]
Construct Segment from logical vector
- Parameters:
y (np.ndarray) – 1d logical array Any sequence of True values that is flanked by False values is converted into a segment
x (np.ndarray | None) – 1d array like, optional The segment indices from y will be used to index into x
interpolate – bool, optional if true, segments of duration 0 are extent to have a minimal duration
- Return type:
- property start: ndarray
Get/Set vector of segment start values
- property stop: ndarray