Creates a synthetic time series with known changepoints for testing and benchmarking.
Arguments
- n
Length of the series.
- changepoints
Integer vector of changepoint locations (last index of each segment before the change).
- change_in
What changes:
"mean","var","meanvar", or"slope".- params
A list of parameters per segment. For
meanchanges, a vector of segment means. Forvarchanges, a vector of segment sds. Formeanvar, a list of lists withmeanandsdper segment. Forslope, a list withinterceptandslopeper segment.- noise
Noise type:
"gauss"(Gaussian),"t"(Student-t),"ar1"(AR(1)), or"rw"(random walk).- sd
Noise standard deviation (for Gaussian and t; t-noise is rescaled so its standard deviation is exactly
sd). Defaults to 1.- df
Degrees of freedom for t-noise; must exceed 2 so the variance exists. Defaults to 3.
- rho
AR(1) autocorrelation parameter. Defaults to 0.
- seed
Optional seed for reproducibility.
- ...
Passed to
cpt_simulate.
