sim.sharp_flex: Signal perturbation: sharp 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, uniformly.

Usage

1
sim.sharp_flex(baseline, range, range_by_time = TRUE, strength)

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

factor by which to stretch the selected values.

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.