GeneratePerturbation: GeneratePerturbation

Description Usage Arguments Value Examples

View source: R/GeneratePerturbation.R

Description

Generate a perturbation of a certain length in a time series, given by values in a vector

Usage

1
2
3
GeneratePerturbation(perturbation.type = "white", timesteps = 10,
  perturbation.mean = 0, perturbation.sd = 1, perturbation.prob = NULL,
  perturbation.max = NULL, perturbation.increment = NULL)

Arguments

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

Value

numeric vector of given length

Examples

1
GeneratePerturbation(perturbation.type = "pulse",timesteps = 100,perturbation.mean = 1,perturbation.sd = 3,perturbation.prob = 0.2)

DavidGarciaCallejas/DGC documentation built on May 6, 2019, 1:54 p.m.