function of dascore.utils.chunk source

    start ,
    stop ,
    length ,
    overlap ,
    step ,
    keep_partials ,

Create a range of values with optional overlaps.


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.


A 2D array where first column is start and second column is end.