Data segmentation for time series based on a general moving sum approach · Study