Description Usage Arguments Value Examples
View source: R/GeneratePerturbation.R
Generate a perturbation of a certain length in a time series, given by values in a vector
1 2 3 | GeneratePerturbation(perturbation.type = "white", timesteps = 10,
perturbation.mean = 0, perturbation.sd = 1, perturbation.prob = NULL,
perturbation.max = NULL, perturbation.increment = NULL)
|
perturbation.type |
values: "white", "pulse", "incremental" |
timesteps |
length of the time series |
perturbation.mean |
mean value |
perturbation.sd |
standard deviation |
perturbation.prob |
for perturbation type = pulse, probability of observing a perturbation |
perturbation.max |
for perturbation type = incremental, maximum value for the perturbation. If 0, no maximum |
perturbation.increment |
for perturbation type = incremental, increment in MEAN at each timestep |
numeric vector of given length
1 | GeneratePerturbation(perturbation.type = "pulse",timesteps = 100,perturbation.mean = 1,perturbation.sd = 3,perturbation.prob = 0.2)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.