is.ratio {DecomposeR} | R Documentation |
Check ratio objects
Description
Check ratio objects
Usage
is.ratio(ratio)
Arguments
ratio |
a ratio object to check |
Examples
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)
inter_dt <- round(runif(length(xy), min = 0.5, max = 1.5),1)
dt <- cumsum(inter_dt)
dec <- extricate(xy, dt, nimf = 7, sifting = 10,
repl = 10, comb = 10, factor_noise = 10,
speak = TRUE)
ht <- inst.pulse(dec, plot = FALSE)
ratio <- inst.ratio(ht, plot = FALSE)
is.ratio(ratio)
[Package DecomposeR version 1.0.6 Index]