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[float]) – Times for which to extract segments.
tstart (float) – Start time for segments.
tstop (float) – Stop time for segments.
decim (int) – Decimate data after segmenting by factor
decim(the default is1, i.e. no decimation).
- Returns:
segmented_data – NDVar with all data segments corresponding to
times, stacked along thecaseaxis.- Return type: