Description Usage Arguments Value Author(s) Examples
View source: R/Creating_gap_univariate.R
This function creates a gap (successive missing values) within a univariate signal. The size of gap is defined as a percentage of input vector length. By default, the starting position of the gap is chosen randomly.
1 | Creating_gap_univariate(X, rate, begin = NULL)
|
X |
input vector |
rate |
size of desired gap, as a percentage of input vector size |
begin |
the begining position of the gap (random by default) |
This function returns a series with a gap of defined size.
Thi-Thu-Hong Phan, Andre Bigand, Emilie Poisson-Caillault
1 2 3 4 | data(dataFSMUMI)
X <- dataFSMUMI[1:5000, 1] #reduction for demo
rate <- 0.1
incompleted_signal <- Creating_gap_univariate(X, rate)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.