Generates various test signals for wavelet transforms.
make.signal(name, n=1024, snr=Inf)
a character string denoting the type of test signal
to create. Supported values are:
"dirac"
, "kronecker"
, "heavisine"
, "bumps"
, "blocks"
,
"doppler"
, "ramp"
, "cusp"
, "crease"
, "sing"
, "hisine"
,
"losine"
, "linchirp"
, "twochirp"
, "quadchirp"
,
"mishmash1"
, "mishmash2"
, "mishmash3"
, "levelshift"
,
"jumpsine"
, "gauss"
, "patches"
,
"linear"
, "quadratic"
, and "cubic"
.
an integer specifying the length out the output series.
Default: 1024
.
a numeric value representing the approximate
signal to noise ratio of the output. Default: Inf
(no noise).
a vector of numeric values containing the resulting test series.
# NOT RUN {
nms <- c("blocks", "linchirp", "mishmash1", "bumps")
z <- lapply(nms, make.signal)
ifultools::stackPlot(x=seq(1024),y=z, ylab=nms)
# }
Run the code above in your browser using DataLab