Learn R Programming

powerHaDeX (version 1.0)

add_noise_to_one_timepoint: Adds noise to a single time point in mass domain

Description

Adds noise to a single time point in mass domain

Usage

add_noise_to_one_timepoint(spectrum, standard_deviations)

Arguments

spectrum

a single spectrum from the list obtained using make_experimental_design.

standard_deviations

vector of standard deviations for the random noise

Value

data.table

Details

the noise is sampled from a normal distribution with mean 0 and standard deviation equal to standard_deviations and added to Mz values for the time points (based on supplied parameters for time points).