A function to generate a gap set example.It can be assigned to the KTSEnv environment.
genGapExample(timSer, lGaps, nGaps, name = "GS", InKTSEnv = TRUE)
The time series where the gaps are generated
The length of the gaps
The number of gaps
A name for the gap set. It defaults to GS. When InKTSEnv is FALSE, the name is not necessary.
Assign to the environment KTSEnv (TRUE) or not (FALSE)
The gap set