# Segment a time series using PELT
segment(DataCPSim, method = "pelt")
# Segment a time series using PELT and the BIC penalty
segment(DataCPSim, method = "pelt", penalty = "BIC")
# Segment a time series using Binary Segmentation
segment(DataCPSim, method = "binseg", penalty = "BIC")
# Segment a time series using a random changepoint set
segment(DataCPSim, method = "random")
# Segment a time series using a manually-specified changepoint set
segment(DataCPSim, method = "manual", tau = c(826))
# Segment a time series using a null changepoint set
segment(DataCPSim)
Run the code above in your browser using DataLab