# NOT RUN {
set.seed(42)
n <- 600
t <- seq_len(n)
p1 <- 30
p2 <- 240
s30 <- (1 + 0.6 * sin(t*2*pi/p2)) * sin(t*2*pi/p1)
s240 <- 2 * sin(t*2*pi/p2)
sn <- rnorm(n, sd = 0.5)
xy <- s30 + s240 + sn
inter_dt <- round(runif(length(xy), min = 0.5, max = 1.5),1)
dt <- cumsum(inter_dt)
dec <- as.emd(xy = xy, dt = dt, imf = matrix(c(sn, s30, s240), ncol = 3))
plot_emd(dec, pdf = FALSE)
is.emd(dec)
# }
# NOT RUN {
dec$xy <- 1
is.emd(dec)
# }
# NOT RUN {
# }
Run the code above in your browser using DataLab