sim.stretch: Signal manipulation: stretch

Description Usage Arguments Value See Also

View source: R/perturbations.R

Description

Stretches out signal data with respect to time. Signal values are interlaced such that 0 or more NAs are inserted after each signal value and additional time points are generated accordingly.

Usage

1
sim.stretch(baseline, n = 1, prob = NULL)

Arguments

baseline

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

n

number of time points which should be inserted after each original time point. This can either be a single integer, or a vector of integers from which values are drawn randomly.

prob

vector of probabilities. If n is a vector: if prob is NULL, probability distribution over n is uniform, otherwise if prob is a vector of values, these are the corresponding probabilities for drawing each element.

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.