Learn R Programming

mosum (version 1.2.7)

testSignal: Piecewise constant test signal

Description

Produce vectors of mean and dispersion values for generating piecewise stationary time series.

Usage

testSignal(
  model = c("custom", "blocks", "fms", "mix", "stairs10", "teeth10")[1],
  lengths = NULL,
  means = NULL,
  sds = NULL
)

Value

a list containing the following entries:

  • mu_t mean vector of piecewise stationary model time series

  • sigma_t deviation scaling vector of piecewise stationary model time series

Arguments

model

a string indicating from which model a realisation is to be generated; possible values are "custom" (for user-specified model using lengths, means and sds), and "blocks", "fms", "mix", "stairs10", "teeth10" (for the referenced test signals)

lengths

use iff model = "custom"; an integer vector for the lengths of the piecewise stationary segments

means

use iff model = "custom"; a numeric vector for the means of the piecewise stationary segments

sds

use iff model = "custom"; a numeric vector for the deviation scaling of the piecewise stationary segments.

Details

See Appendix B in the reference for details about the test signals.

References

P. Fryzlewicz (2014) Wild Binary Segmentation for Multiple Change-Point Detection. The Annals of Statistics, Volume 42, Number 6, pp. 2243-2281.