qubx :: data_types :: Segmentation :: Class Segmentation
[hide private]
[frames] | no frames]

Class Segmentation

source code

object --+
         |
        Segmentation

Describes how a contiguous range of samples is divided into segments.

Instance Methods [hide private]
 
__init__(self)
x.__init__(...) initializes x; see help(type(x)) for signature
source code
 
clear(self)
Removes all segments.
source code
 
add_seg(self, f, l, start)
Appends a segment.
source code
 
index_at(self, i)
Returns the index of the segment containing sample i.
source code
 
split(self, f, l)
Returns segmented list of (iseg, f, l) with local segment indices.
source code

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Instance Variables [hide private]
  OnAdd
WeakEvent(Segmentation, first, last, start) when add_seg() is called
  OnClear
WeakEvent(Segmentation) when clear() is called
  idl
qubx.ideal.Idealization with one dwell per segment, for quick index_at()
  segments
list of (first, last, sample_count) of each segment
  starts
list of start [ms] of each segment
Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self)
(Constructor)

source code 

x.__init__(...) initializes x; see help(type(x)) for signature

Overrides: object.__init__
(inherited documentation)