Description Usage Arguments Value See Also
View source: R/perturbations.R
Contracts signal data. Given a baseline signal, this function separates signal values into segments of size N
, with respect to time. Then, from each segment, i
values from (1..N) are removed at random
(unless j
is not NULL
, in which case always remove the j
-th values in the given segment and disregard i
).
1 2 | sim.contract(baseline, i = 1, j = NULL, N = 2, reindex = FALSE,
pruning_only = FALSE)
|
baseline |
baseline, as generated by function |
i |
see description above. Defaults to 1. |
j |
see description above. Defaults to |
N |
see description above. Defaults to |
reindex |
Boolean, indicates whether |
pruning_only |
Boolean, indicates whether the function should only use the specified parameters to remove events, but keep the time scale fixed. This is equivalent to using function |
Modified baseline
input.
See functions beginning with sim.sample.
for examples of usage.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.