mvtsa.simplify.merge_short_segments#
- mvtsa.simplify.merge_short_segments(segmentation, min_length, X=None, cost='l2')[source]#
Remove change points so that every segment has at least
min_lengthsamples. A short segment is merged with the neighbour for which the merged segment is cheaper undercost(ifXis given), otherwise with its shorter neighbour.