A function, used almost exclusively in testing, to generate a stream of observations with a certain number of changepoints.
makeStreamMeanChangeR(
numChanges = 3,
regimeLength = 150,
seednum = NULL,
mu0 = 0,
sigma0 = 1
)
A vector of observations.
The number of observations between changepoints
(before and after). Default is 150
.
The seed for the random number generator. Default is
NULL
, in which case no seed will be used.
The initial mean of the process.
The variance of each stream.
numChanges The number of changepoints. Default is 3
.
Creates a stream of observations, where after each changepoint the mean increases by one standard deviation.