View source: R/scenarioGenerator.R
| scenarioGenerator | R Documentation | 
Generate a piecewise constant signal of a given length
scenarioGenerator(
  n,
  type = c("none", "up", "updown", "rand1"),
  nbSeg = 20,
  jumpSize = 1
)
| n | The length of the sequence of observations. | 
| type | Possible change scenarios for the jump structure | 
| nbSeg | Number of segments | 
| jumpSize | Maximum magnitude of a change | 
a sequence of N values for the piecewise constant signal
scenarioGenerator(1e3, "rand1")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.