cbfs_red: Generate an artificial event with red noise
Description
This function generates a box, cliff-ramp, ramp-cliff or a sine function with red noise (AR(1)) as the background noise. Length
of the generated event is 128.
Usage
cbfs_red(type = c("box", "rc", "cr", "sine"), A = 10, s = 1, coeff = 0.5)
Arguments
type
type of the event to be generated. There are four options: ``box', ``rc',``cr',``sine' representing
a box, cliff-ramp, ramp-cliff or a sine function.
A
amplitude of the event; default is 10.
s
standard deviation of the AR(1) model innovations. Default is 1.
coeff
coefficient of the AR(1) process, which is used to control the level of red noise. Default is 0.5.