get_intervals
get_intervals(
start ,
stop ,
length ,
overlap = None,
step = None,
keep_partials = False,
)
Create a range of values with optional overlaps.
Parameters
Parameter | Description |
---|---|
start | The start of the interval. |
stop | The end of the interval. |
length | The length of the segments. |
overlap |
The overlap of the start of each interval with the end of the previous interval. |
step |
If not None, subtract step (the sampling interval) from the end values so that the intervals do not overlap by one sample. |
keep_partials | If True, keep the segments which are smaller than chunksize. |
Returns
A 2D array where first column is start and second column is end.