Learn R Programming

powerHaDeX (version 1.0)

add_noise_to_intensities: Adds noise to a single time point in intensity domain

Description

Adds noise to a single time point in intensity domain

Usage

add_noise_to_intensities(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

if the intensity_deviations were provided, then noise is sampled from a normal distribution with mean 0 and standard deviation equal tothose deviations and added to Intensity.