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_length samples. A short segment is merged with the neighbour for which the merged segment is cheaper under cost (if X is given), otherwise with its shorter neighbour.