eelbrain.segment¶
-
eelbrain.
segment
(continuous, times, tstart, tstop, decim=1)¶ Segment a continuous NDVar
Parameters: - continuous : NDVar
NDVar with a continuous time axis.
- times : sequence of scalar
Times for which to extract segments.
- tstart : scalar
Start time for segments.
- tstop : scalar
Stop time for segments.
- decim : int
Decimate data after segmenting by factor
decim
(the default is1
, i.e. no decimation).
Returns: - segmented_data : NDVar
NDVar with all data segments corresponding to
times
, stacked along thecase
axis.