Skip to contents

Starting from the largest segment, we find big segments if their ratio_median difference is less than the the given threshold. We save their indices.

Usage

FindBigSegmentsIndices(segments_copy, thr)

Arguments

segments_copy

A data frame containing segment data. For the first pass, these segments are those with size >= 3mb.

thr

A float: the threshold previously estimated via KDE. Used to determine whether big segments are merged.