sim.smooth_flex: Signal perturbation: smooth flex

Description Usage Arguments Value See Also

View source: R/perturbations.R

Description

Distort a baseline signal by stretching or contracting the signal values (independently of time), effectively changing their variance, by factors generated by a probability density function.

Usage

1
2
sim.smooth_flex(baseline, range, range_by_time = TRUE, strength,
  spikiness, D = c("gauss"))

Arguments

baseline

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

range

indices of affected values. Either a start and end index or the whole range. If length of range is 2 and second value is infinity, the second value is converted to highest possible value. If range is NULL, maximum range (1 to max) is taken.

range_by_time

Boolean, indicates whether values in range correspond to value of time of signal, rather than row indices. This is recommended, since time values for fluorescence signals with non-uniform flow rate are also not uniform.

strength

maximum factor by which to stretch the selected values.

spikiness

measure of how needle-shaped (vs. bell-shaped) the perturbation should be: values between 0 and 1.

D

distribution from which to sample. Can be "gauss" (Gauss).

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.