online changepoint detection
offline changepoint detection