Description Usage Arguments Value Author(s) Examples
View source: R/Creating_gaps.R
This function builds gaps (with the same size) in multivariate time series. The size of each gap is defined as a percentage of input data length. By default, the position of each gap is randomly chosen.
1 | Creating_gaps(data, rate, ngaps, begin = NULL)
|
data |
input multivariate time series |
rate |
size of a gap, as a percentage of input time series size |
ngaps |
number of gaps to create on each signal |
begin |
the starting position of a gap (random by default) |
Creating_gaps returns a multivariate time series with one gap per signal.
Thi-Thu-Hong Phan, Andre Bigand, Emilie Poisson-Caillault
1 2 3 4 5 | data(dataFSMUMI)
X <- dataFSMUMI[1:5000,]; #reduction for demo
rate <- 0.1
ngaps <- 1
incompleted_signal <- Creating_gaps(X, rate,1)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.