sim.prune: Signal manipulation: prune

Description Usage Arguments Value See Also

View source: R/perturbations.R

Description

Prunes 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 (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). Crucially, the removed values are only set to NA, time scale stays in tact.

Usage

1
sim.prune(baseline, i = 1, j = NULL, N = 2, reindex = FALSE)

Arguments

baseline

baseline, as generated by function sim.baseline, possibly perturbed by other functions.

i

see description above. Defaults to 1.

j

see description above. Defaults to NULL.

N

see description above. Defaults to N.

reindex

Boolean, indicates whether time values should be re-indexed to 1..N after contraction.

Value

Modified baseline input.

See Also

See functions beginning with sim.sample. for examples of usage.


davnovak/qctoy documentation built on Nov. 4, 2019, 9:45 a.m.