add_noise: Add noise to an mrs_data object.

View source: R/mrs_data_proc.R

add_noiseR Documentation

Add noise to an mrs_data object.

Description

Add noise to an mrs_data object.

Usage

add_noise(mrs_data, sd = 0.1, fd = TRUE)

Arguments

mrs_data

data to add noise to.

sd

standard deviation of the noise.

fd

generate the noise samples in the frequency-domain (TRUE) or time-domain (FALSE). This is required since the absolute value of the standard deviation of noise samples changes when data is Fourier transformed.

Value

mrs_data object with additive normally distributed noise.


spant documentation built on Sept. 11, 2024, 9:13 p.m.