Simulate time series with known changepoint sets
test_set(n = 1, sd = 1, seed = NULL)
n
: Number of true changepoints in setsd
: Standard deviation passed to stats::rnorm()
seed
: Value passed to base::set.seed()
A stats::ts()
object
x <- test_set() plot(x) changepoints(x)
DataCPSim