testSignal: Piecewise constant test signal

Description Usage Arguments Details Value References

View source: R/test_data.R

Description

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

Usage

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

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.

Value

a list containing the following entries:

References

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


mosum documentation built on June 25, 2021, 5:08 p.m.

Related to testSignal in mosum...