set.seed(42)
n <- 600
t <- seq_len(n)
p1 <- 30
p2 <- 240
xy <- (1 + 0.6 * sin(t*2*pi/p2)) * sin(t*2*pi/p1) + 2 * sin(t*2*pi/p2) +
rnorm(n, sd = 0.5) + t * 0.01
inter_dt <- round(runif(length(xy), min = 0.5, max = 1.5),1)
dt <- cumsum(inter_dt)
dec1 <- extricate(xy, dt, nimf = 5, repl = 1, comb = 10, sifting = 1,
factor_noise = 10, bind = TRUE, speak = TRUE)
dec2 <- extricate(xy, dt, nimf = 6, repl = 1, comb = 100, sifting = 5,
factor_noise = 50, bind = TRUE, speak = TRUE)
if (FALSE) {
plot_emd(dec1, name = "EMD 1", dir = tempdir())
plot_emd(dec2, name = "EMD 2", dir = tempdir())}
parsimony(dec1)
parsimony(dec2)
f1 <- inst.pulse(dec1, plot = FALSE)
f2 <- inst.pulse(dec2, plot = FALSE)
gzc.departure(f1)
gzc.departure(f2)
Run the code above in your browser using DataLab