group sequential scans if scan[i] + tolerance[i] + tolerance[i + 1] > scan[i + 1]

find_scan_jumps(scans, tolerances)

Arguments

scans

a vector of scan numbers

tolerances

tolerances for grouping

Value

integer values of scan groups