View source: R/noisy_spectra.R
add_noise_to_single_curve | R Documentation |
Adds noise to a single deuteration curve
add_noise_to_single_curve( replicate_curve, per_run_deviations = NULL, relative = TRUE )
replicate_curve |
'data.table' with technical replicates of a
deuteration curve (one element of a list obtained by
|
per_run_deviations |
optional, standard deviations of random noise that
will be added to deuteration curves. Either a single number (then the error
at each time point will be the same) or a vector of the same length as number
of unique time points in the experiment. The error will be sampled from
normal distribution with these standard deviations. Default |
relative |
logical, if TRUE (default), each deuteration curve will start
at 0 (relative mass will be returned). Default |
This function uses add_noise
and
get_relative_mass
.
'data.table' containing noisy replicated deuteration curves.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.